This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37831] -Wshadow warns about variable names that aren't equal
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2008 01:38:16 -0000
- Subject: [Bug c++/37831] -Wshadow warns about variable names that aren't equal
- References: <bug-37831-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from bangerth at dealii dot org 2008-10-15 01:38 -------
Note also that the documentation plainly states:
@item -Wshadow
@opindex Wshadow
@opindex Wno-shadow
Warn whenever a local variable shadows another local variable, parameter or
global variable or whenever a built-in function is shadowed.
The current behavior could therefore simply be classified as a bug.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37831