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: Sat, 12 Nov 2011 19:10:38 +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 #1 from Ed Smith-Rowland <3dw4rd at verizon dot net> 2011-11-12 19:10:38 UTC ---
As I was testing a patch that turned out to be totally bogus, it looked like
maybe processing_template_decl is false when processing a template
specialization. Is this true?
In fact I know it's true.
I can't add a spurious (even literal-allowed) argument list because I'll get
error: template-id âoperator"" _foo<'1'>â for âint operator"" _foo(long
double)â does not match any template declaration
But is there a test for when you're looking at a template specialization?
Oh well. it doesn't affect this bug. Just curious.