This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Token cleanup in c-exp.y
Jiang Jilin <freephp@gmail.com> writes:
> On Tue, Aug 25, 2009 at 5:40 PM, Pierre Muller<muller@ics.u-strasbg.fr> wrote:
>> Â Just for information:
>> doesn't this mean that
>> the parser that previously accepted
>> Â'-> Â*' with spaces between the arrow and the star,
>> will now reject such patterns?
>> ÂIs this also what a C compile would do?
>
> Personally, I think '->*' is _not_ really a single token or
> operation like '++' in ISO C Standard, so the patch is _not_ correct.
In C++ both `.*' and `->*' are single tokens. In C, in a valid
expression, `*' can never follow `.' or `->'.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."