mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Create the symbol for the struct as early as possible.
This commit is contained in:
parent
b545f72f93
commit
acced90101
1 changed files with 4 additions and 0 deletions
|
@ -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 '}'
|
||||
|
|
Loading…
Reference in a new issue