This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/37831] -Wshadow warns about variables inside classes member functions



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-10-15 01:40 -------
bar the function shadows bar the variable.  I think the warning is correct. 
The variable _bar is not being taken into account at all.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|-Wshadow warns about        |-Wshadow warns about
                   |variable names that aren't  |variables inside classes
                   |equal                       |member functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]