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++/61648] g++ accepts literal operator friends for non-template classes but not for *template* classes


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61648

--- Comment #2 from Ed Smith-Rowland <3dw4rd at verizon dot net> ---
In typeck.c/check_literal_operator_args

Make this change:

-  if (processing_template_decl || processing_specialization)
+  /*if (processing_template_decl || processing_specialization)*/
+  if (PROCESSING_REAL_TEMPLATE_DECL_P())
     return argtypes == void_list_node;



Proper patch and test and changelog coming later.

Do I need a equivalent to processing_specialization or did I put that in there
because someone else did...  Yes I need something...  Template specializations
fail.


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