re PR c++/46124 ([C++0x] ICE: tree check: expected var_decl or function_decl, have...
authorJason Merrill <jason@redhat.com>
Sat, 28 May 2011 22:01:38 +0000 (18:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 28 May 2011 22:01:38 +0000 (18:01 -0400)
commit0fa1a986d77e85e5970e13a3799d7c5c9b9439d2
treec8b1ef3a191ccb8c22c17065d6353724176e6f37
parent32da2be4ccf3662d354e954d705b7a8e8ea5f0eb
re PR c++/46124 ([C++0x] ICE: tree check: expected var_decl or function_decl, have error_mark in cp_parser_lambda_declarator_opt, at cp/parser.c:7817 on invalid lambda function)

PR c++/46124
* parser.c (cp_parser_lambda_expression): Improve error recovery.
(cp_parser_lambda_declarator_opt): Likewise.  Return bool.

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