aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>2002-04-30 09:34:49 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2002-04-30 09:34:49 +0000
commitb819d9e00b1eed55492005fab2c81af5f13e8b66 (patch)
treef8b67596bb914bb8a005760efacace26c91246a6
parent8e44e77e6afd3b46d2e1d7176fbf15734241ba16 (diff)
downloadgcc-b819d9e00b1eed55492005fab2c81af5f13e8b66.zip
gcc-b819d9e00b1eed55492005fab2c81af5f13e8b66.tar.gz
gcc-b819d9e00b1eed55492005fab2c81af5f13e8b66.tar.bz2
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
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parse.y8
2 files changed, 8 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8f92105..b74e4fd 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-30 Paul Eggert <eggert@twinsun.com>
+
+ * parse.y (nomods_initdcl0): Do not move stack entries
+ when setting things up as initdcl0_innards expects.
+
2002-04-29 Jakub Jelinek <jakub@redhat.com>
PR c++/6477
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y
index 2574d1d..2bf6e1d 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. */
+ $<ftype>$.t = NULL_TREE;
+ $<ftype>$.lookups = NULL_TREE; }
notype_declarator maybeasm
- { /* Set things up as initdcl0_innards expects. */
- $<ttype>3 = $2;
- $2 = $1;
- $<ftype>1.t = NULL_TREE;
- $<ftype>1.lookups = NULL_TREE; }
initdcl0_innards
{}
| constructor_declarator maybeasm maybe_attribute