P1787: CWG1822 is resolved by specifying that the body of a lambda remains in the surrounding (function parameter) scope.
Wording: A parameter-declaration-clause P introduces a function parameter scope that includes P. <...> If P is associated with a lambda-declarator, its scope extends to the end of the compound-statement in the lambda-expression. ([basic.scope.param])
Details
Details
- Reviewers
shafik - Group Reviewers
Restricted Project - Commits
- rG86946ebb796c: [clang] Add test for CWG1822
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo