[Bug c++/68374] G++ -Wshadow doesn't warn about static member shadowing
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 2 18:16:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68374
--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed May 2 18:15:56 2018
New Revision: 259853
URL: https://gcc.gnu.org/viewcvs?rev=259853&root=gcc&view=rev
Log:
/cp
2018-05-02 Paolo Carlini <paolo.carlini@oracle.com>
Jason Merrill <jason@redhat.com>
PR c++/68374
* name-lookup.c (check_local_shadow): Don't handle static old
declarations in the block handling locals shadowing locals.
/testsuite
2018-05-02 Paolo Carlini <paolo.carlini@oracle.com>
Jason Merrill <jason@redhat.com>
PR c++/68374
* g++.dg/warn/Wshadow-13.C: New.
* g++.dg/warn/Wshadow-14.C: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/warn/Wshadow-13.C
trunk/gcc/testsuite/g++.dg/warn/Wshadow-14.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list