]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
parse.y (nomods_initdcl0): Do not move stack entries when setting things up as initdc...
authorPaul Eggert <eggert@twinsun.com>
Tue, 30 Apr 2002 09:35:14 +0000 (09:35 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 30 Apr 2002 09:35:14 +0000 (09:35 +0000)
* parse.y (nomods_initdcl0): Do not move stack entries
when setting things up as initdcl0_innards expects.

From-SVN: r52940

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

index 603dd63e77f2366b48ffd67e8463e6d414afc028..37920809499357151b9580f2b6532bb1f5190bdd 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 2051f99d57b27cb28456fb3f97db84ff384a1734..40b986f6761931da6d8bf84f2ab641054445725b 100644 (file)
@@ -2117,12 +2117,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