ref: d5e80faa2bd461ee5c53ea81329347cb8a530369
parent: 72c078099ff413a22007b90784238bb294dd7dbe
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Jun 18 05:41:01 EDT 2022
cc1: Expect semicolon after do-while
--- a/src/cmd/cc/cc1/stmt.c
+++ b/src/cmd/cc/cc1/stmt.c
@@ -156,9 +156,12 @@
emit(OBLOOP, NULL);
emit(OLABEL, begin);
+
stmt(lbreak, lcont, lswitch);
expect(WHILE);
np = condition(NONEGATE);
+ expect(';');
+
emit(OLABEL, lcont);
emit(OBRANCH, begin);
emit(OEXPR, np);