cp/parse.y:2120: invalid value: $3
Paul Eggert
eggert@twinsun.com
Mon Apr 29 15:16:00 GMT 2002
> Date: Mon, 29 Apr 2002 20:44:51 +0100
> From: Nathan Sidwell <nathan@acm.org>
> > | 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).
More information about the Gcc-bugs
mailing list