https://bugs.llvm.org/show_bug.cgi?id=39428
Bug ID: 39428
Summary: lambda capture shadowing is not rejected
Product: clang
Version: 7.0
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: tras...@gmail.com
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
https://godbolt.org/z/GlUZbu
void f() {
int x = 0;
auto g = [x](int x) { return 0; }
}
should be an error:
https://wg21.link/cwg2211
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs