[Bug c++/51107] [C++11] Accepts invalid literal operator with void argument list.
3dw4rd at verizon dot net
gcc-bugzilla@gcc.gnu.org
Sat Nov 12 20:54:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list