Add an error check after calling doexpr2().
This commit is contained in:
parent
512cbc73a0
commit
dbee1bcd08
@ -2206,6 +2206,17 @@ static void declloc(int tokid)
|
||||
&type->idxtag[i],
|
||||
&child, 0, &val);
|
||||
pushreg(sPRI);
|
||||
|
||||
switch (ident) {
|
||||
case iVARIABLE:
|
||||
case iEXPRESSION:
|
||||
case iARRAYCELL:
|
||||
case iCONSTEXPR:
|
||||
break;
|
||||
default:
|
||||
error(29);
|
||||
break;
|
||||
}
|
||||
|
||||
if (!needtoken(']'))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user