Re: [PATCH, C++] Fix-it info for invalid class/struct after enum

2017-04-25 Thread Nathan Sidwell
On 04/25/2017 03:39 AM, Volker Reichelt wrote: Hi, the following patch adds fix-it information for a pedwarn in the C++ parser about the invalid use of class/struct after enum. 2017-04-25 Volker Reichelt * parser.c (cp_parser_elaborated_type_specifier): Add fix-it to diag

[PATCH, C++] Fix-it info for invalid class/struct after enum

2017-04-25 Thread Volker Reichelt
Hi, the following patch adds fix-it information for a pedwarn in the C++ parser about the invalid use of class/struct after enum. I factored out the call to cp_lexer_peek_token, because it was called already 3 times (twice from within cp_lexer_next_token_is_keyword) and I didn't want to add a 4th