This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57640] Explicit call of system literal operator complains about leading underscore.
- From: "3dw4rd at verizon dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Jun 2013 05:48:44 +0000
- Subject: [Bug c++/57640] Explicit call of system literal operator complains about leading underscore.
- Auto-submitted: auto-generated
- References: <bug-57640-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57640
--- Comment #1 from Ed Smith-Rowland <3dw4rd at verizon dot net> ---
Created attachment 30317
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30317&action=edit
Add declarator_p to checks to trigger warning.
Testing this fully but I think this tiny patch will do.
gcc/cp:
2013-06-18 Ed Smith-Rowland <3dw4rd@verizon.net>
PR c++/57640
* parser.c (cp_parser_unqualified_id): Add declarator_p to checks
to trigger warning, (cp_literal_operator_id): Remove bogus TODO comment.
gcc/testsuite:
2013-06-18 Ed Smith-Rowland <3dw4rd@verizon.net>
PR c++/57640
* g++.dg/cpp1y/pr57640.C: New.