PR c++/67273
commit42c456a76448d60b166a4996fa049c139fe42c00
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jan 2017 18:05:37 +0000 (31 18:05 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jan 2017 18:05:37 +0000 (31 18:05 +0000)
treef62703550f7fe7d4d981807650c925ba802fa29a
parent655df35b90572908989d5368ae2111d1f0c34d49
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245067 138bc75d-0d04-0410-961f-82ee72b054a4
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]