re PR c++/56100 (spurious -Wshadow warning with local variable in template class)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 1 Apr 2015 21:27:55 +0000 (21:27 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 1 Apr 2015 21:27:55 +0000 (21:27 +0000)
commitb4d5e41f1dd32de1f23a1897440f6fb149820430
treeece0d14f21795f7fc4442e0481ab0d874c5064fe
parent35238bb505daa6a00cfaec9acdee2d1867788d53
re PR c++/56100 (spurious -Wshadow warning with local variable in template class)

/cp
2015-04-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/56100
* pt.c (instantiating_current_function_p): New.
* name-lookup.c (pushdecl_maybe_friend_1): Use it.
* cp-tree.h (instantiating_current_function_p): Declare.

/testsuite
2015-04-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/56100
* g++.dg/warn/Wshadow-8.C: New.
* g++.dg/warn/Wshadow-9.C: Likewise.
* g++.dg/warn/Wshadow-10.C: Likewise.
* g++.dg/warn/Wshadow-11.C: Likewise.

From-SVN: r221814
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wshadow-10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wshadow-11.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wshadow-8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wshadow-9.C [new file with mode: 0644]