diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/parser.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0fea9127c81..8b4f1c0c481 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 210d3dda0e0..22f7a89fc42 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -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. */ |