From a4a041b34cf96421a52fca155f65701beab926b4 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 7 Apr 2024 04:58:27 -0700 Subject: 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 --- decl.c | 4 ---- 1 file changed, 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 -- cgit v1.2.3