Do not eat() the semicolon at the end of a local label declaration, but expect() it.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 5 Feb 2011 09:04:07 +0000 (09:04 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 5 Feb 2011 09:04:07 +0000 (09:04 +0000)
[r28308]

parser.c

index c476ed7..ce7ce2f 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -10130,7 +10130,7 @@ static statement_t *parse_local_label_declaration(void)
                }
                next_token();
        } while (next_if(','));
-       eat(';');
+       expect(';', end_error);
 end_error:
        statement->declaration.declarations_begin = begin;
        statement->declaration.declarations_end   = end;