From 92c125047769d66c71ba6874cc670c45595bc393 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 4 Jun 2023 20:14:43 +0200 Subject: ; after do while --- parse.c | 1 + 1 file changed, 1 insertion(+) (limited to 'parse.c') diff --git a/parse.c b/parse.c index d3167ce..12f0fd7 100644 --- a/parse.c +++ b/parse.c @@ -1689,6 +1689,7 @@ stmt(struct parser *pr, struct function *fn) expect(pr, ')', NULL); if (!isscalar(ex.ty)) error(&ex.span, "'while' condition is not a scalar (%ty)", ex.ty); + stmtterm(pr); EMITS { end = newblk(fn); if (!terminates) condjump(fn, &ex, begin, end); -- cgit v1.2.3