This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/37831] -Wshadow warns about variable names that aren't equal



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]