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: Paul Eggert
Subject: Re: cp/parse.y:2120: invalid value: $3
Date: Mon, 29 Apr 2002 13:19:56 -0700 (PDT)

> Date: Mon, 29 Apr 2002 20:44:51 +0100
> From: Nathan Sidwell <address@hidden>

> > | nomods_initdcl0:
> > |           notype_declarator maybeasm
> > |             { /* Set things up as initdcl0_innards expects.  */
> > | ===>        $<ttype>3 = $2;
> there are lots of places (55 to be precise) in parse.y which say
> $<ttype>N. Is this the only wrong one?

Yes.

It's wrong because there is no $3 at that point.  The mid-rule action
follows the 2nd nonterminal on the right hand side, so there is only a
$1 and a $2 at that point.

Most likely $<ttype>$ was intended, but it's possible that there is
a subtler bug here (I haven't looked into it).



reply via email to

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