Per CWG 2672 substitution failure within the body of a lambda inside a
requires-expression should be a hard error.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for the PR!
Can you add a test in dr26xx ?
Also, i think the intent is that only the body is in the immediate context.
maybe we need a test like
requires { decltype([] -> T {})::foo(); }
Because I think the intent is for that to work (@rsmith?)
clang/lib/Sema/SemaTemplateInstantiate.cpp | ||
---|---|---|
1100–1103 | Can you also add |
Comment Actions
Can you add a test in dr26xx ?
Sure, done. Hope I updated cxx_dr_status in the right way. The script wasn't happy until I added "open" to the test comment.
maybe we need a test like Because I think the intent is for that to work
Seems to be working if I got it right.
Can you also add
// CWG2672: A lambda-expression body is never in the immediate context ?