FIx regression with member tag of an enum not being checked on assigment

This commit is contained in:
Arkshine
2014-12-09 22:26:59 +01:00
parent 2bba5ce69a
commit 45bf43d76e
2 changed files with 31 additions and 4 deletions

View File

@ -240,6 +240,7 @@ typedef struct s_value {
cell constval; /* value of the constant expression (if ident==iCONSTEXPR)
* also used for the size of a literal array */
int tag; /* tagname id (of the expression) */
char forceuntag; /* whether expression is untagged using _: */
char ident; /* iCONSTEXPR, iVARIABLE, iARRAY, iARRAYCELL,
* iEXPRESSION or iREFERENCE */
char boolresult; /* boolean result for relational operators */