diff options
author | Michael Forney <mforney@mforney.org> | 2024-04-07 04:58:27 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-04-07 13:29:14 -0700 |
commit | a4a041b34cf96421a52fca155f65701beab926b4 (patch) | |
tree | 008b55c5c59741d0226a0a7361efa72c3a9f72e5 | |
parent | c3ed2be023ac78e94bbcd4b1dd378763f86c6ef9 (diff) |
decl: Remove unsufficient attempt to push qualifiers to array element type
There may be multiple nested array types, so this doesn't work in
general.
References: https://todo.sr.ht/~mcf/cproc/79
-rw-r--r-- | decl.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -507,10 +507,6 @@ done: } if (!t && (tq || sc && *sc || fs && *fs)) error(&tok.loc, "declaration has no type specifier"); - if (t && tq && t->kind == TYPEARRAY) { - t = mkarraytype(t->base, t->qual | tq, t->u.array.length); - tq = QUALNONE; - } /* TODO: consider delaying attribute parsing to declarator(), so we can tell the difference between the start of an |