re PR c++/72800 (ICE on invalid C++14 code with initialized lambda capture: tree...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 4 Aug 2016 19:22:58 +0000 (19:22 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 4 Aug 2016 19:22:58 +0000 (19:22 +0000)
commit4473482d5bedbb34761791bbe68eae4fefaa85d2
treeff6b53c60149f93a0c0d0a241cc00ab0d76a157c
parent08156df50a56e4a4bd95159ad1bfbc50678f9e8a
re PR c++/72800 (ICE on invalid C++14 code with initialized lambda capture: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in add_capture, at cp/lambda.c:505)

/cp
2016-08-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/72800
* lambda.c (add_capture): Check lambda_capture_field_type return
value for error_mark_node.

/testsuite
2016-08-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/72800
* g++.dg/cpp1y/lambda-ice1.C: New.

From-SVN: r239148
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/lambda-ice1.C [new file with mode: 0644]