static defs are initialized too

This commit is contained in:
Bill Currie 2002-09-12 18:30:24 +00:00
parent 842a9d2eb0
commit d7eea11c91

View file

@ -366,7 +366,7 @@ def_item
: def_name opt_initializer : def_name opt_initializer
{ {
$$ = $1; $$ = $1;
if ($$ && $$->global if ($$ && !$$->local
&& $$->type->type != ev_func) && $$->type->type != ev_func)
def_initialized ($$); def_initialized ($$);
} }