* parse.y (nomods_initdcl0): Set up the parser stack correctly.
authorMumit Khan <khan@xraylith.wisc.edu>
Tue, 8 Sep 1998 14:00:19 +0000 (14:00 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 8 Sep 1998 14:00:19 +0000 (10:00 -0400)
From-SVN: r22331

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

index c1ab0e4..deef002 100644 (file)
@@ -1,3 +1,7 @@
+1998-09-08  Mumit Khan  <khan@xraylith.wisc.edu>
+
+       * parse.y (nomods_initdcl0): Set up the parser stack correctly.
+
 1998-09-08  Mark Mitchell  <mark@markmitchell.com>
 
        * cp-tree.h (anonymous_namespace_name): Declare.
index c73312c..4642f8d 100644 (file)
@@ -3593,7 +3593,7 @@ static const short yycheck[] = {     4,
     77,    78,    79,    80,    81,    82,    83,    84
 };
 /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
-#line 3 "/usr/lib/bison.simple"
+#line 3 "/usr/cygnus/gnupro-98r1/share/bison.simple"
 
 /* Skeleton output parser for bison,
    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
@@ -3786,7 +3786,7 @@ __yy_memcpy (char *to, char *from, int count)
 #endif
 #endif
 \f
-#line 196 "/usr/lib/bison.simple"
+#line 196 "/usr/cygnus/gnupro-98r1/share/bison.simple"
 
 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
    into yyparse.  The argument should have type void *.
@@ -5813,7 +5813,7 @@ case 420:
 case 421:
 #line 1912 "parse.y"
 { /* Set things up as initdcl0_innards expects.  */
-             yyval.ttype = yyvsp[-1].ttype; 
+             yyvsp[0].ttype = yyvsp[-1].ttype; 
               yyvsp[-1].ttype = NULL_TREE; ;
     break;}
 case 422:
@@ -7781,7 +7781,7 @@ case 870:
     break;}
 }
    /* the action file gets copied in in place of this dollarsign */
-#line 498 "/usr/lib/bison.simple"
+#line 498 "/usr/cygnus/gnupro-98r1/share/bison.simple"
 \f
   yyvsp -= yylen;
   yyssp -= yylen;
index 5bc8cb0..29bfc9d 100644 (file)
@@ -1910,7 +1910,7 @@ notype_initdcl0:
 nomods_initdcl0:
           notype_declarator maybeasm
             { /* Set things up as initdcl0_innards expects.  */
-             $<ttype>$ = $1; 
+             $<ttype>2 = $1; 
               $1 = NULL_TREE; }
           initdcl0_innards 
             {}