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.