* parse.y (nomods_initdcl0): Do not move stack entries
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Apr 2002 09:34:49 +0000 (09:34 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Apr 2002 09:34:49 +0000 (09:34 +0000)
when setting things up as initdcl0_innards expects.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52939 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/parse.y

index 8f92105..b74e4fd 100644 (file)
@@ -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
index 2574d1d..2bf6e1d 100644 (file)
@@ -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