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++/51107] [C++11] Accepts invalid literal operator with void argument list.


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.


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