Merge pull request #245 from YashasSamaga/fix-i160
fixes inconsistencies with the tagof operator
This commit is contained in:
commit
a840b4a4c3
@ -1433,10 +1433,13 @@ static int hier2(value *lval)
|
|||||||
else if (level==sym->dim.array.level+1 && idxsym!=NULL)
|
else if (level==sym->dim.array.level+1 && idxsym!=NULL)
|
||||||
tag=idxsym->x.tags.index;
|
tag=idxsym->x.tags.index;
|
||||||
} /* if */
|
} /* if */
|
||||||
|
if (tag!=0) {
|
||||||
exporttag(tag);
|
exporttag(tag);
|
||||||
|
tag |= PUBLICTAG;
|
||||||
|
} /* if */
|
||||||
clear_value(lval);
|
clear_value(lval);
|
||||||
lval->ident=iCONSTEXPR;
|
lval->ident=iCONSTEXPR;
|
||||||
lval->constval=tag | PUBLICTAG;
|
lval->constval=tag;
|
||||||
ldconst(lval->constval,sPRI);
|
ldconst(lval->constval,sPRI);
|
||||||
while (paranthese--)
|
while (paranthese--)
|
||||||
needtoken(')');
|
needtoken(')');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user