Merge pull request #245 from YashasSamaga/fix-i160

fixes inconsistencies with the tagof operator
This commit is contained in:
Zeex 2018-04-22 19:46:39 +06:00 committed by GitHub
commit a840b4a4c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1433,10 +1433,13 @@ static int hier2(value *lval)
else if (level==sym->dim.array.level+1 && idxsym!=NULL)
tag=idxsym->x.tags.index;
} /* if */
exporttag(tag);
if (tag!=0) {
exporttag(tag);
tag |= PUBLICTAG;
} /* if */
clear_value(lval);
lval->ident=iCONSTEXPR;
lval->constval=tag | PUBLICTAG;
lval->constval=tag;
ldconst(lval->constval,sPRI);
while (paranthese--)
needtoken(')');