bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp/parse.y:2120: invalid value: $3


From: Akim Demaille
Subject: Re: cp/parse.y:2120: invalid value: $3
Date: 30 Apr 2002 18:42:43 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

I said:
| >>>>> "Jason" == Jason Merrill <address@hidden> writes:
| >>>>> "Mark" == Mark Mitchell <address@hidden> writes:
| >> --On Monday, April 29, 2002 04:22:00 PM -0700 Paul Eggert
| >> <address@hidden> wrote:
| 
| So I would suggest, based on my understanding, the following code:
| 
| nomods_initdcl0:
|           notype_declarator maybeasm
|             { 
|               /* Reset some fields in the $0 of initdcl0_innards. */
|               $<ftype>1.t = NULL_TREE;
|               $<ftype>1.lookups = NULL_TREE; 
|               /* Because of this mid-rule action, arguments are
|                  shifted: move them as if this action did not exist. */
|               $<ftype>$ = $<ftype>2;    /* Prepare $0 in initdcl0_innards as 
notype_declarator. */
|               $<ttype>2 = $<ttype>1;    /* Prepare $-1 in initdcl0_innards as 
maybeasm. */
|               $<ttype>1 = $<ttype>0;    /* Prepare $-2 in initdcl0_innards as 
datadecl. */
|              }
|           initdcl0_innards
|             {}

The comments are wrong, read:

nomods_initdcl0:
          notype_declarator maybeasm
            { 
              /* Reset some fields in the $0 of initdcl0_innards. */
              $<ftype>1.t = NULL_TREE;
              $<ftype>1.lookups = NULL_TREE; 
              /* Because of this mid-rule action, arguments are
                 shifted: move them as if this action did not exist. */
              $<ftype>$ = $<ftype>2;    /* Prepare $0 in initdcl0_innards as 
maybeasm. */
              $<ttype>2 = $<ttype>1;    /* Prepare $-1 in initdcl0_innards as 
notype_declarator. */
              $<ttype>1 = $<ttype>0;    /* Prepare $-2 in initdcl0_innards as 
tempate_datadef or datadef. */
             }
          initdcl0_innards
            {}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]