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

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 25 15:52:00 GMT 2013


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> clang does no warn on "var_and_method" as variable vs. method are safe, if one
> tries to use them inappropriately one gets an error.

Not always.  Think of function pointers or pointer to member functions.  clang
is not loose in my mind rather than GCC is too strict.



More information about the Gcc-bugs mailing list