re PR c++/84630 (ICE: TYPE_NAME() used on error_mark_node in tsubst_lambda_expr,...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 18 Apr 2018 08:03:45 +0000 (08:03 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 18 Apr 2018 08:03:45 +0000 (08:03 +0000)
commitc18a88c50a0d65cb230644755a9d8bc25a34810e
treeff5bed45b74dff0de0a0efd9c52ebf00f4ceccf9
parent19ddb884ebb2f39535d8e527c02c576fb768333b
re PR c++/84630 (ICE: TYPE_NAME() used on error_mark_node in tsubst_lambda_expr, at cp/pt.c:17141)

/cp
2018-04-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84630
* pt.c (tsubst_lambda_expr): Check begin_lambda_type return value
for error_mark_node.

/testsuite
2018-04-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84630
* g++.dg/cpp0x/pr84630.C: New.

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