This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44128] C++ frontend not warn on type shadowing with -Wshadow
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jul 2010 21:28:49 -0000
- Subject: [Bug c++/44128] C++ frontend not warn on type shadowing with -Wshadow
- References: <bug-44128-16309@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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