From f713d53fb61ae14f2d1a1df8f76614b0856c3b07 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 18 Jan 2025 20:51:47 +0900 Subject: [PATCH] [qfcc] Allow local/param function variables I thought that was needed, but wasn't sure. It is :P. --- tools/qfcc/source/expr_process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qfcc/source/expr_process.c b/tools/qfcc/source/expr_process.c index 76acf1b39..6e501bad0 100644 --- a/tools/qfcc/source/expr_process.c +++ b/tools/qfcc/source/expr_process.c @@ -687,6 +687,9 @@ spec_process (specifier_t spec, rua_ctx_t *ctx) if (spec.type && spec.type_expr) { internal_error (0, "both type and type_expr set"); } + if (spec.storage == sc_local || spec.storage == sc_param) { + spec.is_function = false; + } if (!spec.type_expr) { spec = default_type (spec, spec.sym); }