This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] broken build using bison-1.75
Possibly confusing typo in my message:
Jim Blandy <jimb@redhat.com> writes:
> If you write a rule without a final action, like the start rule from
> p-exp.y:
>
> start : { current_type = NULL;
> search_field = 0;
> }
> normal_start;
>
> then Bison inserts a default final action, { $$ = $1; }. However, in
> this example, that's a bad idea, since $1 refers to the mid-rule
> action `{ current_type = ... }', and that has to type. That's why the
I meant to say: has no type
> error message says:
>
> /home/js/MIPS/toolchain/mips-linux-gdb/gdb/../../gdb+dejagnu-5.3-branch-20021031/gdb/c-exp.y:248.5-251.3: type clash (`voidval' `') on default action
>
> I think that's complaining that there's a clash between the type of
> `start', which is `voidval', and the type of the mid-rule action,
> which is being printed as `'.