]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
authorPaul Eggert <eggert@twinsun.com>
Tue, 30 Apr 2002 15:42:21 +0000 (15:42 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 30 Apr 2002 15:42:21 +0000 (11:42 -0400)
From-SVN: r52947

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

index 37920809499357151b9580f2b6532bb1f5190bdd..97aad5a827811263bae5c2a33f6cb2389ec0f1bf 100644 (file)
@@ -1,7 +1,6 @@
-2002-04-30  Paul Eggert  <eggert@twinsun.com>
+2002-04-29  Paul Eggert  <eggert@twinsun.com>
 
-       * parse.y (nomods_initdcl0): Do not move stack entries
-       when setting things up as initdcl0_innards expects.
+       * parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
 
 2002-04-29  Jakub Jelinek  <jakub@redhat.com>
 
index 40b986f6761931da6d8bf84f2ab641054445725b..d1e3761febf7f6948c1cb96d9d8365fbac306d22 100644 (file)
@@ -2117,10 +2117,12 @@ 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>$ = $2;
+             $2 = $1; 
+              $<ftype>1.t = NULL_TREE;
+             $<ftype>1.lookups = NULL_TREE; }
           initdcl0_innards 
             {}
        | constructor_declarator maybeasm maybe_attribute