* parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
authorPaul Eggert <eggert@twinsun.com>
Tue, 30 Apr 2002 16:11:44 +0000 (16:11 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 30 Apr 2002 16:11:44 +0000 (12:11 -0400)
From-SVN: r52948

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

index b74e4fd98bc884f0bca2c6eeb8e3cca2033dea70..3ef996bffd8c23544f8bf62cf68cb3ff3893a289 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 2bf6e1d65274b75baf9d92187b896b1e8a132c5f..07549107c61b4cc15559f76d28e4c975ce7de1b8 100644 (file)
@@ -2147,10 +2147,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