Don't handle #pragma in cp_lexer_peek_token

Zack Weinberg zack@codesourcery.com
Tue Sep 21 23:16:00 GMT 2004


Matt Austern <austern@apple.com> writes:

>> test.c:1: error: expected identifier before 'PRAGMA' token
>> test.c:1: error: expected `,' or `...' before 'PRAGMA' token
>> test.c:3: error: ISO C++ forbids declaration of `parameter' with no
>> type
>
> I agree with you that this is a *very* low-priority problem, and that
> probably there isn't any code like that out there (especially since
> macros can't expand to pragmas), but it's probably worth filing a
> PR anyway for the unfriendliness of this error message.  If I were
> a user who had written a ghastly construct like that, and if I saw
> that error message, I wouldn't have any clue what it meant.

Fair enough.  Would you do that please?

zw



More information about the Gcc-patches mailing list