This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51107] [C++11] Accepts invalid literal operator with void argument list.
- From: "3dw4rd at verizon dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Nov 2011 05:03:05 +0000
- Subject: [Bug c++/51107] [C++11] Accepts invalid literal operator with void argument list.
- Auto-submitted: auto-generated
- References: <bug-51107-4@http.gcc.gnu.org/bugzilla/>
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.