[Bug c++/55776] -Wshadow generates an incorrect warning with enum classes

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 5 01:17:00 GMT 2013


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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It also changes meaning if I reorder the declarations of myenum::foo and
myenum::bar, which is exactly the sort of fragile code that deserves a warning.



More information about the Gcc-bugs mailing list