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 #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.


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