From a1cfa434dec6c65d7ba969ace973ca137a66047a Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 18 Jan 2001 14:24:27 +0100 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/parse.y | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8409ce3eb6b..23eecef71ae 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-01-18 Jakub Jelinek + + * parse.y (nomods_initdcl0): Properly set things up for + initdcl0_innards. + 2001-01-18 Nathan Sidwell * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag. diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index dca09921a2d..b827b984627 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. */ - $2 = $1; - $1 = NULL_TREE; } + $3 = $2; + $2 = $1; + $1.t = NULL_TREE; + $1.lookups = NULL_TREE; } initdcl0_innards {} | constructor_declarator maybeasm maybe_attribute -- 2.30.2