update the scope of local defs to the parent scope when the creation scope

goes away (doesn't get updated to the global scope). fixes a bug where
local defs would be miscounted (and sometimes lost)
This commit is contained in:
Bill Currie 2004-04-09 03:47:41 +00:00
parent 0b61dae402
commit 332ec82495

View file

@ -695,6 +695,7 @@ statement_block
current_scope->num_defs += num_defs;
*current_scope->tail = defs;
while (*current_scope->tail) {
(*current_scope->tail)->scope = current_scope;
current_scope->tail = &(*current_scope->tail)->def_next;
}
}