ref: b2cc565d9b38feb95d42fa044b1038e52335cd1e
parent: 398df28c10917d7e9e07f6d02c234a582ac94122
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Oct 19 17:13:32 EDT 2015
Fix grammar error in stmtexp() Stmtex() was doing a look ahead always, to detect the situation of a labelled statement, but the look ahead must be done only if the stmt begins with an identifier.
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
@@ -40,7 +40,7 @@
{
if (accept(';'))
return;
- if (ahead() == ':') {
+ if (yytoken == IDEN && ahead() == ':') {
label();
stmt(lbreak, lcont, lswitch);
return;