mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
Preserve the ivars inheritance chain across build_struct().
build_struct() unlinks the structure symbol table from its parent, but that breaks the ivar inheritance chain.
This commit is contained in:
parent
5707888fcf
commit
5fa349927f
1 changed files with 5 additions and 2 deletions
|
@ -1421,11 +1421,14 @@ ivar_decl_list
|
|||
}
|
||||
ivar_decl_list_2
|
||||
{
|
||||
symtab_t *tab = $<symtab>1;
|
||||
$$ = current_symtab;
|
||||
current_symtab = $<symtab>1->parent;
|
||||
$<symtab>1->parent = 0;
|
||||
current_symtab = tab->parent;
|
||||
tab->parent = 0;
|
||||
|
||||
tab = $$->parent; // preserve the ivars inheritance chain
|
||||
build_struct ('s', 0, $$, 0);
|
||||
$$->parent = tab;
|
||||
}
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue