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++/12357] Fails to find overload (or maybe very bad error message)


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12357



------- Additional Comments From nathan at gcc dot gnu dot org  2003-09-22 14:49 -------
default argments do not play a part in type deduction, thus deduction of Lss's C
parameter fails, and Lss cannot be instantiated for that call. You are
correct in that that is a SFINAE failure, do no diagnostic at deduction time.
(I thought we'd list the template candidates, if there were no non-template
candidates.)

As to the doubled 'operator<' not defined error. It is a bug to be repeated, but
the error is correct. The builtin candidates are only considered for operators
in expressions -- they canot be named.


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