From: Paul Eggert Date: Tue, 30 Apr 2002 09:35:14 +0000 (+0000) Subject: parse.y (nomods_initdcl0): Do not move stack entries when setting things up as initdc... X-Git-Tag: releases/gcc-3.1.0~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a42c73aee63492712b0cb4414a8db9b9159b4e5;p=thirdparty%2Fgcc.git 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: r52940 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 603dd63e77f2..379208094993 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 2051f99d57b2..40b986f67619 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -2117,12 +2117,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