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++/44128] C++ frontend not warn on type shadowing with -Wshadow



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-07-24 21:28 -------
apinski@apinski-desktop:~/Desktop$ ~/local-gcc/bin/g++ -Wshadow t.c -S
t.c: In function ?void bar()?:
t.c:5:14: warning: declaration of ?Py_ssize_t? shadows a global declaration
[-Wshadow]
t.c:1:14: warning: shadowed declaration is here [-Wshadow]


Hmm, this must have been fixed between May and now, 4.3.2 did not report the
warning either.

Note I think the second warning should really be note.


-- 


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


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