* parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Apr 2002 16:11:44 +0000 (16:11 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Apr 2002 16:11:44 +0000 (16:11 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52948 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b74e4fd..3ef996b 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 2bf6e1d..0754910 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