[Bug c++/44128] C++ frontend not warn on type shadowing with -Wshadow
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 5 03:44:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44128
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-11-05 03:44:37 UTC ---
Yes, it was fixed by
2010-07-02 Le-Chun Wu <lcwu@google.com>
PR/44128
* name-lookup.c (pushdecl_maybe_friend): Warn when a local decl
(variable or type) shadows another type.
Changing the second warning to an inform sounds good.
More information about the Gcc-bugs
mailing list