This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12357] Fails to find overload (or maybe very bad error message)
- From: "nathan at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2003 14:49:32 -0000
- Subject: [Bug c++/12357] Fails to find overload (or maybe very bad error message)
- References: <20030921215241.12357.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.