Remove special cases for EXPR_ERROR and TYPE_ERROR from constant folding and type...
[cparser] / parser.c
index 4784f8a..73b0209 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -6868,9 +6868,10 @@ static expression_t *parse_noop_expression(void)
                if (token.kind != ')') do {
                        (void)parse_assignment_expression();
                } while (next_if(','));
+
+               rem_anchor_token(',');
+               rem_anchor_token(')');
        }
-       rem_anchor_token(',');
-       rem_anchor_token(')');
        expect(')', end_error);
 
 end_error: