re PR c++/84455 (ICE in build_call_a at gcc/cp/call.c:389 during error reporting)
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Feb 2018 08:20:37 +0000 (09:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Feb 2018 08:20:37 +0000 (09:20 +0100)
commitdda0944cd51484658f2e1d3ec39800fd6709b6af
treee54da2161d4045acb043ddc96046fcf990042eb2
parent329a89d34cedb0aec759f9c4531d2dbba7f0937b
re PR c++/84455 (ICE in build_call_a at gcc/cp/call.c:389 during error reporting)

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.

From-SVN: r257838
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice26.C [new file with mode: 0644]