Improve error recovery: eat_until_anchor() when parse_primary_expression() finds...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 6 Feb 2011 07:51:08 +0000 (07:51 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 6 Feb 2011 07:51:08 +0000 (07:51 +0000)
[r28322]

parser.c

index 8eaf7d4..8984d95 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -7154,6 +7154,7 @@ static expression_t *parse_primary_expression(void)
        }
 
        errorf(HERE, "unexpected token %K, expected an expression", &token);
+       eat_until_anchor();
        return create_invalid_expression();
 }