Adjust the template pparameter depth when parsing default
template arguments as they may introduce generic lambda whose parameters
are not substituted at the same depth.
Fixes #62611
Paths
| Differential D151342
[Clang] Correctly handle generic lambda used as default template argument. ClosedPublic Authored by cor3ntin on May 24 2023, 9:14 AM.
Details
Summary Adjust the template pparameter depth when parsing default Fixes #62611
Diff Detail
Event TimelineComment Actions So I think this is the right approach here. Unfortunately my knowledge of the parser is a little wonky, so I don't feel comfortable JUST approving this right away(though it DOES look correct to me). I'd like to give other folks a day or two to take a look. I've added the lang-wg, so please give them a day or two to point out why I'm an idiot here before committing this.
This revision is now accepted and ready to land.May 24 2023, 10:00 AM Closed by commit rG75cd8cdbde45: [Clang] Correctly handle generic lambda used as default template argument. (authored by cor3ntin). · Explain WhyMay 26 2023, 7:04 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 526034 clang/docs/ReleaseNotes.rst
clang/lib/Parse/ParseTemplate.cpp
clang/test/SemaCXX/cxx2a-template-lambdas.cpp
|
Same below.