This is an archive of the discontinued LLVM Phabricator instance.

[clang] Add test for CWG1822
ClosedPublic

Authored by Endill on Apr 7 2023, 9:43 PM.

Details

Reviewers
shafik
Group Reviewers
Restricted Project
Commits
rG86946ebb796c: [clang] Add test for CWG1822
Summary

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])

Diff Detail

Event Timeline

Endill created this revision.Apr 7 2023, 9:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2023, 9:43 PM
Endill requested review of this revision.Apr 7 2023, 9:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2023, 9:43 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
shafik accepted this revision.Apr 10 2023, 10:05 AM
shafik added a subscriber: shafik.

Thank you! LGTM

This revision is now accepted and ready to land.Apr 10 2023, 10:05 AM
This revision was automatically updated to reflect the committed changes.