Adding $$ = $1 kept Bison quiet.
Here is a variation that gets Unused value $1.
assign : variable ASSIGN expression
{
$$->term.oper = op_assign;
This is also fixed by stating the default action.
Surely this is a bug (?).
On 28 January 2013 16:43, John P. Hartmann <[email protected]> wrote:
> But here is another one:
>
> | dotobyfors dotobyfor { listend($1, $2); }
>
> Gets "warning: unset value: $$".
>
> I'm relying on the default $$ = $1 here.
>
> Or is there something more subtle going on? Or (shudder) is the
> default applied only when there is no explicit semantic code? (In
> which case I have a lot of grammars to fix.)
_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison