re PR c++/84446 (ICE with broken lambda)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 20 Feb 2018 09:02:12 +0000 (09:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 20 Feb 2018 09:02:12 +0000 (09:02 +0000)
commit0b2513e292a70d715affbe4a9b5af6672fcf99b3
tree71703ff66974d7a3c883c1170d86827cc4b1b189
parent393d9df7b33313418ae8921cdb587537bd641c1c
re PR c++/84446 (ICE with broken lambda)

/cp
2018-02-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84446
* parser.c (cp_parser_init_declarator): Don't call start_lambda_scope
on error_mark_node.

/testsuite
2018-02-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84446
* g++.dg/cpp0x/lambda/lambda-ice27.C: New.

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