re PR c++/41553 (timeout when compiling g++.old-deja/g++.other/crash28.C)

PR c++/41553
	* parser.c (cp_parser_lambda_introducer): Avoid infinite loop on
	parse error.

From-SVN: r152433
This commit is contained in:
Jason Merrill 2009-10-03 14:48:44 -04:00 committed by Jason Merrill
parent 0d6bfda807
commit b06e51a0c9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-10-03 Jason Merrill <jason@redhat.com>
PR c++/41553
* parser.c (cp_parser_lambda_introducer): Avoid infinite loop on
parse error.
2009-10-02 Jason Merrill <jason@redhat.com>
* mangle.c (write_unnamed_type_name): Implement.

View File

@ -7176,7 +7176,7 @@ cp_parser_lambda_introducer (cp_parser* parser, tree lambda_expr)
/*recovering=*/true,
/*or_comma=*/true,
/*consume_paren=*/true);
continue;
break;
}
/* Find the initializer for this capture. */