From b4387cd881113b902c6cc5c2ebeae73831f92904 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 5 Dec 2024 13:10:11 +0900 Subject: [PATCH] [qfcc] Finish type decl for type_ref I guess I'd wanted to avoid supporting automatic types in type functions, but that broke long and unsigned int: either no type, or just int, depending on the decl style. --- tools/qfcc/source/qc-parse.y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index e7e6a8ed6..0a86fff03 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -1276,7 +1276,11 @@ type_list ; type_ref - : type_ref_spec { $$ = new_type_expr ($1.type); } + : type_ref_spec + { + specifier_t spec = default_type ($1, 0); + $$ = new_type_expr (spec.type); + } | CLASS_NAME { $$ = new_type_expr ($1->type); } | TYPE_NAME {