From: Paul Eggert Date: Tue, 30 Apr 2002 16:11:44 +0000 (+0000) Subject: * parse.y (nomods_initdcl0): Replace $3 with $$. X-Git-Tag: releases/gcc-3.3.0~5380 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6e81f1c95ed341bfb04f69fee3fc0a6aa1208e5;p=thirdparty%2Fgcc.git * parse.y (nomods_initdcl0): Replace $3 with $$. From-SVN: r52948 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b74e4fd98bc8..3ef996bffd8c 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 2bf6e1d65274..07549107c61b 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