[qfcc] Allow local/param function variables

I thought that was needed, but wasn't sure. It is :P.
This commit is contained in:
Bill Currie 2025-01-18 20:51:47 +09:00
parent d05fcecae4
commit f713d53fb6

View file

@ -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);
}