Merge pull request #164 from Arkshine/fix/regression-member-tag-of-enum

FIx regression with member tag of enum not being checked on assigment
This commit is contained in:
Vincent Herbet
2014-12-13 11:23:10 +01:00
2 changed files with 26 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 */