re PR c++/67273 (Incorrect -Wshadow warning with generic lambdas)
authorNathan Sidwell <nathan@acm.org>
Tue, 31 Jan 2017 18:05:37 +0000 (18:05 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 31 Jan 2017 18:05:37 +0000 (18:05 +0000)
commitde3fbef690ab0c8c4631ea0359d0500fa22ff1a9
treef62703550f7fe7d4d981807650c925ba802fa29a
parent1a5bac38b5dadab15477a9beb3c888a888539a26
re PR c++/67273 (Incorrect -Wshadow warning with generic lambdas)

PR c++/67273
PR c++/79253
* pt.c: (instantiate_decl): Push to top level when current
function scope doesn't match.  Only push lmabda scope stack when
pushing to top.

PR c++/67273
PR c++/79253
* g++.dg/cpp1y/pr67273.C: New.
* g++.dg/cpp1y/pr79253.C: New.

From-SVN: r245067
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr67273.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/pr79253.C [new file with mode: 0644]