This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Don't handle #pragma in cp_lexer_peek_token
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