Re: [C++ PATCH] PR c++/65923

2018-04-04 Thread Jason Merrill
On Wed, Apr 4, 2018 at 10:35 AM, Ville Voutilainen wrote: > On 3 April 2018 at 17:19, Ville Voutilainen > wrote: >> * parser.c (cp_parser_unqualified_id): Add a new parameter >> and check it for the literal diagnostic. > > > As discussed on irc, we can indeed do better. With this approac

Re: [C++ PATCH] PR c++/65923

2018-04-04 Thread Ville Voutilainen
On 3 April 2018 at 17:19, Ville Voutilainen wrote: > * parser.c (cp_parser_unqualified_id): Add a new parameter > and check it for the literal diagnostic. As discussed on irc, we can indeed do better. With this approach, we look at function declarations only, so using-declarations are au

[C++ PATCH] PR c++/65923

2018-04-03 Thread Ville Voutilainen
Finishing testing with the full suite on Linux-PPC64, tested partially on Linux-x64. 2018-04-03 Ville Voutilainen gcc/cp PR c++/65923 * parser.c (cp_parser_unqualified_id): Add a new parameter and check it for the literal diagnostic. (cp_parser_using_declaration): Adjust.