aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/expr.c b/expr.c
index 755fdef..6e35a29 100644
--- a/expr.c
+++ b/expr.c
@@ -312,6 +312,7 @@ primaryexpr(struct scope *s)
if (!d)
error(&tok.loc, "undeclared identifier: %s", tok.lit);
e = mkexpr(EXPRIDENT, d->type);
+ e->qual = d->qual;
e->lvalue = d->kind == DECLOBJECT;
e->ident.decl = d;
if (d->kind != DECLBUILTIN)