[PATCH] D123840: [Clang][Sema] Fix invalid redefinition error in if/switch/for statement
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 15 06:48:39 PDT 2022
erichkeane added inline comments.
================
Comment at: clang/docs/ReleaseNotes.rst:123
+- Clang should no longer incorrectly diagnose a variable declaration inside of
+ a lambda expression inside the scope of a if/while/for/switch init statement
+ as a redeclaration.
----------------
Sorry, re-read it:
Clang should no longer incorrectly diagnose a variable declaration inside of a lambda expression that shares the name of a variable in a containing if/while/for/switch init statement as a redeclaration.
Feel free to commit with that wording.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123840/new/
https://reviews.llvm.org/D123840
More information about the cfe-commits
mailing list