This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]