aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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