diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index e33c1d08e..6c2511e23 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -491,6 +491,10 @@ enumerator struct_specifier : STRUCT optional_tag '{' { + symbol_t *sym; + sym = find_struct ($1, $2, 0); + if (!sym->table) + symtab_addsymbol (current_symtab, sym); current_symtab = new_symtab (current_symtab, stab_local); } struct_defs '}'