aboutsummaryrefslogtreecommitdiff
path: root/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'decl.c')
-rw-r--r--decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/decl.c b/decl.c
index f137533..bfe1435 100644
--- a/decl.c
+++ b/decl.c
@@ -345,6 +345,8 @@ declspecs(struct scope *s, enum storageclass *sc, enum funcspec *fs, int *align)
t = typename(s, &tq);
if (!t) {
e = expr(s);
+ if (e->decayed)
+ e = e->unary.base;
t = e->type;
tq |= e->qual;
delexpr(e);