unsigned StructSize;
unsigned Size;
+ static const token_t EndTokens[] = { TOK_RCURLY, TOK_SEMI };
+
+
/* Consume the opening curly brace */
ConsumeLCurly ();
Tab = Entry->V.S.SymTab;
if (Tab == 0) {
Error ("Cannot initialize variables with incomplete type");
- /* Returning here will cause lots of errors, but recovery is difficult */
+ /* Try error recovery */
+ SkipTokens (EndTokens, sizeof(EndTokens)/sizeof(EndTokens[0]));
+ if (CurTok.Tok == TOK_RCURLY) {
+ NextToken ();
+ }
+ /* Nothing initialized */
return 0;
}