diff --git a/tools/qfcc/source/function.c b/tools/qfcc/source/function.c index c1e48a5ad..ca8338e6c 100644 --- a/tools/qfcc/source/function.c +++ b/tools/qfcc/source/function.c @@ -288,6 +288,7 @@ parse_generic_function (const char *name, specifier_t spec, rua_ctx_t *ctx) if (!spec.is_generic) { return nullptr; } + spec = default_type (spec, spec.sym); // fake parameter for the return type param_t ret_param = { .next = spec.params,