From: Jakub Jelinek Date: Thu, 18 Jan 2001 13:24:27 +0000 (+0100) Subject: parse.y (nomods_initdcl0): Properly set things up for initdcl0_innards. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1cfa434dec6c65d7ba969ace973ca137a66047a;p=gcc.git 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 --- 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