From b4569233cbcc76a0ff384644dd5e5c87124c2316 Mon Sep 17 00:00:00 2001 From: Aleksi Hannula Date: Sun, 30 Nov 2025 18:37:23 +0200 Subject: [PATCH] Set TYPE_PARAM parsing mode in old-style param lists --- tccgen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tccgen.c b/tccgen.c index 0caeb151..10ddb617 100644 --- a/tccgen.c +++ b/tccgen.c @@ -8742,7 +8742,11 @@ static int decl(int l) while (1) { /* iterate thru each declaration */ type = btype; ad = adbase; - type_decl(&type, &ad, &v, TYPE_DIRECT); + if (l == VT_CMP) { + type_decl(&type, &ad, &v, TYPE_DIRECT | TYPE_PARAM); + } else { + type_decl(&type, &ad, &v, TYPE_DIRECT); + } /*ptype("decl", &type, v);*/ if ((type.t & VT_BTYPE) == VT_FUNC) {