This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46124

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-28 22:01:44 UTC ---
Author: jason
Date: Sat May 28 22:01:38 2011
New Revision: 174386

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174386
Log:
    PR c++/46124
    * parser.c (cp_parser_lambda_expression): Improve error recovery.
    (cp_parser_lambda_declarator_opt): Likewise.  Return bool.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-syntax1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]