From e6e81f1c95ed341bfb04f69fee3fc0a6aa1208e5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 30 Apr 2002 16:11:44 +0000 Subject: [PATCH] * parse.y (nomods_initdcl0): Replace $3 with $$. From-SVN: r52948 --- gcc/cp/ChangeLog | 5 ++--- gcc/cp/parse.y | 8 +++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b74e4fd98bc..3ef996bffd8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,7 +1,6 @@ -2002-04-30 Paul Eggert +2002-04-29 Paul Eggert - * parse.y (nomods_initdcl0): Do not move stack entries - when setting things up as initdcl0_innards expects. + * parse.y (nomods_initdcl0): Replace $3 with $$. 2002-04-29 Jakub Jelinek diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 2bf6e1d6527..07549107c61 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -2147,10 +2147,12 @@ 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. */ + $$ = $2; + $2 = $1; + $1.t = NULL_TREE; + $1.lookups = NULL_TREE; } initdcl0_innards {} | constructor_declarator maybeasm maybe_attribute -- 2.30.2