From b819d9e00b1eed55492005fab2c81af5f13e8b66 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 30 Apr 2002 09:34:49 +0000 Subject: [PATCH] parse.y (nomods_initdcl0): Do not move stack entries when setting things up as initdcl0_innards expects. * parse.y (nomods_initdcl0): Do not move stack entries when setting things up as initdcl0_innards expects. From-SVN: r52939 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/parse.y | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8f9210500f3..b74e4fd98bc 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 2574d1dd061..2bf6e1d6527 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 -- 2.30.2