This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cp/parse.y:2120: invalid value: $3
From: Paul Eggert <eggert@twinsun.com>
Date: Mon, 29 Apr 2002 13:19:56 -0700 (PDT)
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.
This was a recent thread about all this recently starting
at:
http://gcc.gnu.org/ml/gcc-bugs/2002-04/msg01309.html
I would suggest that everyone here takes a quick read there
as Jakub Jelinek explains why the code there right now is
how it is.