diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8f9210500f31..b74e4fd98bc8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2002-04-30 Paul Eggert + + * parse.y (nomods_initdcl0): Do not move stack entries + when setting things up as initdcl0_innards expects. + 2002-04-29 Jakub Jelinek PR c++/6477 diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 2574d1dd0612..2bf6e1d65274 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -2147,12 +2147,10 @@ notype_initdcl0: ; nomods_initdcl0: + { /* Set things up as initdcl0_innards expects. */ + $$.t = NULL_TREE; + $$.lookups = NULL_TREE; } notype_declarator maybeasm - { /* Set things up as initdcl0_innards expects. */ - $3 = $2; - $2 = $1; - $1.t = NULL_TREE; - $1.lookups = NULL_TREE; } initdcl0_innards {} | constructor_declarator maybeasm maybe_attribute