aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parse.y6
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8409ce3..23eecef 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-18 Jakub Jelinek <jakub@redhat.com>
+
+ * parse.y (nomods_initdcl0): Properly set things up for
+ initdcl0_innards.
+
2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
* pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y
index dca0992..b827b98 100644
--- a/gcc/cp/parse.y
+++ b/gcc/cp/parse.y
@@ -2072,8 +2072,10 @@ notype_initdcl0:
nomods_initdcl0:
notype_declarator maybeasm
{ /* Set things up as initdcl0_innards expects. */
- $<ttype>2 = $1;
- $1 = NULL_TREE; }
+ $<ttype>3 = $2;
+ $2 = $1;
+ $<ftype>1.t = NULL_TREE;
+ $<ftype>1.lookups = NULL_TREE; }
initdcl0_innards
{}
| constructor_declarator maybeasm maybe_attribute