diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 1ff29594a..4d0219b75 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -737,7 +737,11 @@ decl : function_decl | var_decl opt_initializer { - initialize_def ($1, $0.type, $2, current_symtab->space, + specifier_t spec = $0; + type_t *type; + + type = find_type (append_type ($1->type, spec.type)); + initialize_def ($1, type, $2, current_symtab->space, $0.storage); } ;