initialized locals aren't constant

This commit is contained in:
Bill Currie 2003-09-25 02:05:43 +00:00
parent 0b44c78259
commit 99034fef27

View file

@ -424,7 +424,8 @@ opt_initializer
var_initializer
: '=' expr
{
if (current_scope->type == sc_local) {
if (current_scope->type == sc_local
|| current_scope->type == sc_params) {
append_expr (local_expr,
assign_expr (new_def_expr ($<def>0), $2));
def_initialized ($<def>0);