Remove anchors, when they are not expected anymore.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 26 Apr 2012 17:22:25 +0000 (19:22 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 26 Apr 2012 17:22:25 +0000 (19:22 +0200)
parser.c

index 8d29162..c351692 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4400,12 +4400,12 @@ static void parse_declaration_rest(entity_t *ndeclaration,
                ndeclaration = parse_declarator(specifiers, flags);
                rem_anchor_token('=');
        }
+       rem_anchor_token(',');
+       rem_anchor_token(';');
        expect(';', end_error);
 
 end_error:
        anonymous_entity = NULL;
-       rem_anchor_token(';');
-       rem_anchor_token(',');
 }
 
 static entity_t *finished_kr_declaration(entity_t *entity, bool is_definition)