[Bug c++/57640] Explicit call of system literal operator complains about leading underscore.

3dw4rd at verizon dot net gcc-bugzilla@gcc.gnu.org
Tue Jun 18 05:48:00 GMT 2013


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.



More information about the Gcc-bugs mailing list