aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-04-07 04:58:27 -0700
committerMichael Forney <mforney@mforney.org>2024-04-07 13:29:14 -0700
commita4a041b34cf96421a52fca155f65701beab926b4 (patch)
tree008b55c5c59741d0226a0a7361efa72c3a9f72e5
parentc3ed2be023ac78e94bbcd4b1dd378763f86c6ef9 (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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/decl.c b/decl.c
index 23dc778..2fb56c4 100644
--- a/decl.c
+++ b/decl.c
@@ -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