aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-01-18 14:24:27 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2001-01-18 14:24:27 +0100
commita1cfa434dec6c65d7ba969ace973ca137a66047a (patch)
treee2dafd0d5966df6b17f26b805d8b30dd9510fe04
parent90d036a050b8443c93a32fc31480e7afefad088f (diff)
downloadgcc-a1cfa434dec6c65d7ba969ace973ca137a66047a.zip
gcc-a1cfa434dec6c65d7ba969ace973ca137a66047a.tar.gz
gcc-a1cfa434dec6c65d7ba969ace973ca137a66047a.tar.bz2
parse.y (nomods_initdcl0): Properly set things up for initdcl0_innards.
* parse.y (nomods_initdcl0): Properly set things up for initdcl0_innards. From-SVN: r39119
-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