[C++ PATCH] PR c++/65923
Ville Voutilainen
ville.voutilainen@gmail.com
Wed Apr 4 14:36:00 GMT 2018
On 3 April 2018 at 17:19, Ville Voutilainen <ville.voutilainen@gmail.com> 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 automatically ok, and we allow friend
declarations (that are not
definitions) and local declarations. Tested locally/partially on
Linux-x64, will test with the full suite
if this is ok. On that front.. ..where can this land? This isn't a
regression, but it's certainly a long-standing
annoyance, but mostly only for -Werror users. I can argue it both ways.
2018-04-04 Ville Voutilainen <ville.voutilainen@gmail.com>
gcc/cp
PR c++/65923
* decl.c (grokfndecl): Handle standard UDL diagnostics here..
* parser.c (cp_parser_unqualified_id): ..not here.
testsuite/
PR c++/65923
* g++.dg/diagnostic/pr65923.C: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr65923_2.diff
Type: text/x-patch
Size: 2053 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180404/95629049/attachment.bin>
More information about the Gcc-patches
mailing list