re PR c++/68374 (G++ -Wshadow doesn't warn about static member shadowing)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 2 May 2018 18:15:56 +0000 (18:15 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 2 May 2018 18:15:56 +0000 (18:15 +0000)
commit006fbbe9526698a7828023b6710acc478b845e18
treed3e68caa1c7827bfd632233231decc845612dd17
parentec00d3faf4e3d20906e8e6038299343f960dc49e
re PR c++/68374 (G++ -Wshadow doesn't warn about static member shadowing)

/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.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r259853
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wshadow-13.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wshadow-14.C [new file with mode: 0644]