[Bug c++/51107] [C++11] Accepts invalid literal operator with void argument list.

3dw4rd at verizon dot net gcc-bugzilla@gcc.gnu.org
Mon Nov 14 06:41:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51107

--- Comment #4 from Ed Smith-Rowland <3dw4rd at verizon dot net> 2011-11-14 05:03:05 UTC ---
Created attachment 25813
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25813
Patch in typeck.c and enhaced testcase.

gcc/testsuite/

2011-11-14  Ed Smith-Rowland  <3dw4rd@verizon.net>

    PR c++/51107
    * g++.dg/cpp0x/udlit-args-neg.C: Add check for void argument non-
    template literal operator.

gcc/cp/

2011-11-14  Ed Smith-Rowland  <3dw4rd@verizon.net>

    PR c++/51107
    * typeck.c (check_literal_operator_args): Add processing_specialization
    to check for void template fn. Test for exact arity for non-template fn.



More information about the Gcc-bugs mailing list