aboutsummaryrefslogtreecommitdiff
path: root/decl.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-03-23 14:15:00 -0700
committerMichael Forney <mforney@mforney.org>2024-03-23 14:15:00 -0700
commit2e3ecc7000138622a528eef7681bfdd8ca0bc3c5 (patch)
tree86331119dbf3a15df98ea54701cedd6a8be63026 /decl.c
parent52d9d1e21c38d33a0dcab8021751743ac180766b (diff)
expr: Keep track of storage duration of compound literals
Diffstat (limited to 'decl.c')
-rw-r--r--decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decl.c b/decl.c
index fc48dc9..34e61f4 100644
--- a/decl.c
+++ b/decl.c
@@ -625,7 +625,7 @@ declaratortypes(struct scope *s, struct list *result, char **name, bool allowabs
error(&tok.loc, "VLAs are not yet supported");
t = mkarraytype(NULL, tq, 0);
if (tok.kind != TRBRACK) {
- e = eval(assignexpr(s), EVALARITH);
+ e = eval(assignexpr(s));
if (e->kind != EXPRCONST || !(e->type->prop & PROPINT))
error(&tok.loc, "VLAs are not yet supported");
i = e->u.constant.u;