From acced9010112d7e8b8a3a5f0bf66c56ff633dda7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 13 Feb 2011 20:55:33 +0900 Subject: [PATCH] Create the symbol for the struct as early as possible. --- tools/qfcc/source/qc-parse.y | 4 ++++ 1 file changed, 4 insertions(+) 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 '}'