[Bug c++/57709] -Wshadow is too strict / has false positives

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 25 18:00:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57709

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #5)
> 
> That would be fine.  But it seems less important for member functions, since
> there's much less chance of a local variable name conflicting with some
> random function declared by an #include file.

Well, Jan here is complaining precisely that a local variable (not function
pointer, not other function) conflicts with a member function. I would expect
that to almost never happen but I guess some programmers are not very good at
naming things ;-)


More information about the Gcc-bugs mailing list