[Bug c++/12357] Fails to find overload (or maybe very bad error message)
nathan at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 22 15:14:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list