https://bugs.llvm.org/show_bug.cgi?id=46914
Bug ID: 46914
Summary: Inconsistency between
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: federico.kirch...@gmail.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
There is an inconsistency between "-Wshadow-all" and
"-Wshadow-uncaptured-local".
----
int main() {
int i = [](int i){ return i;}(1);
return i;
}
----
when compiling with "-Wshadow-all" it emits following diagnostic: "warning:
declaration shadows a local variable [-Wshadow-uncaptured-local]"
but when compiling with "-Wshadow-uncaptured-local", it does not emit any
diagnostic.
As reference:
https://godbolt.org/z/vxWdc4
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs