Re: [RFA] Token cleanup in c-exp.y

Andreas Schwab
2009-08-25T14:18:33Z

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."