diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-16 16:47:53 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-16 17:11:41 -0700 |
commit | 056de5d46edfd4f5882217248c49fa64a9ecff48 (patch) | |
tree | 150b3bb640c3bd8854c05160969baa52ffaa1aff /decl.c | |
parent | 07ca02cc2d0a2137433f29186aa838d68ded7e9a (diff) |
Use undecayed type in __typeof__
Diffstat (limited to 'decl.c')
-rw-r--r-- | decl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |