diff options
author | Michael Forney <mforney@mforney.org> | 2024-03-23 14:15:00 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-03-23 14:15:00 -0700 |
commit | 2e3ecc7000138622a528eef7681bfdd8ca0bc3c5 (patch) | |
tree | 86331119dbf3a15df98ea54701cedd6a8be63026 /decl.c | |
parent | 52d9d1e21c38d33a0dcab8021751743ac180766b (diff) |
expr: Keep track of storage duration of compound literals
Diffstat (limited to 'decl.c')
-rw-r--r-- | decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |