PR c++/84455
commit16335c27fa0e14c544942c9205f15271460e6688
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2018 08:20:37 +0000 (20 08:20 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2018 08:20:37 +0000 (20 08:20 +0000)
treee54da2161d4045acb043ddc96046fcf990042eb2
parente86f32c088263317a3d74cbdf242381743a22dcd
PR c++/84455
* pt.c (tsubst_lambda_expr): If not nested, increment temporarily
function_depth to avoid GC during finish_lambda_function.

* g++.dg/cpp0x/lambda/lambda-ice26.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257838 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice26.C [new file with mode: 0644]