[Bug c++/45615] -Wshadow doesn't report class member shadowing

redi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Sep 9 16:31:00 GMT 2010



------- Comment #1 from redi at gcc dot gnu dot org  2010-09-09 16:31 -------
I agree this would be useful, I've had problems with such shadowing when moving
members higher in inheritance hierarchies and accidentally missing occurrences
in some derived classes.

4.2 is unmaintained now, but current releases don't warn either.


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2010-09-09 16:31:17
               date|                            |


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



More information about the Gcc-bugs mailing list