Mark symbols as read when using sizeof().

This commit is contained in:
David Anderson 2014-11-08 20:45:43 -08:00
parent 704e9579f7
commit 4c377f21f9

View File

@ -1675,6 +1675,7 @@ static int hier2(value *lval)
clear_value(lval);
lval->ident=iCONSTEXPR;
lval->constval=1; /* preset */
markusage(sym, uREAD);
if (sym->ident==iARRAY || sym->ident==iREFARRAY) {
int level;
symbol *idxsym=NULL;