diff options
author | Jason Merrill <jason@redhat.com> | 2009-10-03 14:48:44 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-10-03 14:48:44 -0400 |
commit | b06e51a0c9852e7fb7c6f589b46f6906ce48febd (patch) | |
tree | fae19385203785499478e327e4d4fdd741b99d04 | |
parent | 0d6bfda80739113acfa3b3ecbdc0c7451b317154 (diff) | |
download | gcc-b06e51a0c9852e7fb7c6f589b46f6906ce48febd.zip gcc-b06e51a0c9852e7fb7c6f589b46f6906ce48febd.tar.gz gcc-b06e51a0c9852e7fb7c6f589b46f6906ce48febd.tar.bz2 |
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
-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 0fea912..8b4f1c0 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 210d3dd..22f7a89 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. */ |