This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/62126] -Wshadow for typedef and template parm
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Aug 2017 11:23:07 +0000
- Subject: [Bug c++/62126] -Wshadow for typedef and template parm
- Auto-submitted: auto-generated
- References: <bug-62126-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62126
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |egallager at gcc dot gnu.org
Resolution|--- |WORKSFORME
--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
gcc8 prints a shadowing warning for me:
$ /usr/local/bin/g++ -c -Wall -Wextra -Wshadow -pedantic -D_GNU_SOURCE
-mtune=generic -march=i386 -fstack-protector -Wformat=2 -Wformat-security
62126.cc
62126.cc: In static member function ‘static void Base<type>::hello()’:
62126.cc:25:16: warning: declaration of ‘type_t’ shadows a previous local
[-Wshadow]
typedef int type_t; // <<< shadowing type_t
^~~~~~
62126.cc:23:16: note: shadowed declaration is here
typedef type type_t;
^~~~~~
$
So it looks like it was probably FIXED, but I don't have the computing
resources to bisect to find out what version exactly, so I'll just say
WORKSFORME.