This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Correctly handle allocation in template arguments
ClosedPublic

Authored by cor3ntin on May 6 2023, 5:47 AM.

Details

Summary

Fixes #62462

Diff Detail

Event Timeline

cor3ntin created this revision.May 6 2023, 5:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2023, 5:47 AM
cor3ntin requested review of this revision.May 6 2023, 5:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2023, 5:47 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
cor3ntin added a reviewer: Restricted Project.May 6 2023, 5:47 AM
tbaeder added a subscriber: tbaeder.May 6 2023, 6:17 AM
tbaeder added inline comments.
clang/lib/AST/ExprConstant.cpp
15356–15367

Makes more sense, I think?

cor3ntin updated this revision to Diff 520085.May 6 2023, 6:46 AM

Address @tbaeder feedback

shafik added a subscriber: shafik.May 6 2023, 12:10 PM
shafik added inline comments.
clang/lib/AST/ExprConstant.cpp
15357–15366

Can you add a comment explaining why this is necessary, I don't see it myself. Maybe a quote from the standard if it is applicable as well.

Also the description of the PR should be more descriptive even if it is mostly a copy past of your comment from the bug report.

cor3ntin updated this revision to Diff 520154.May 7 2023, 1:00 AM

Update commit message and add comment referencing the standard.

Fznamznon added inline comments.
clang/docs/ReleaseNotes.rst
419

Not an expert in this, but I assume _ after link is needed.

cor3ntin updated this revision to Diff 520316.May 8 2023, 3:21 AM

Fix release notes

cor3ntin updated this revision to Diff 520356.May 8 2023, 6:54 AM

Formatting.

erichkeane accepted this revision.May 8 2023, 7:15 AM
erichkeane added a subscriber: erichkeane.

I think this looks right, and you've satisfied all the other reviewers. LGTM.

This revision is now accepted and ready to land.May 8 2023, 7:15 AM
This revision was landed with ongoing or failed builds.May 8 2023, 7:28 AM
This revision was automatically updated to reflect the committed changes.