This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26278] ambiguous overload candidates list contains duplicates
- From: "Ralf dot Wildenhues at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2008 17:25:49 -0000
- Subject: [Bug c++/26278] ambiguous overload candidates list contains duplicates
- References: <bug-26278-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from Ralf dot Wildenhues at gmx dot de 2008-01-29 17:25 -------
Created an attachment (id=15050)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15050&action=view)
reduced testcase
t.5.ii: In function ?int main()?:
t.5.ii:14: error: ambiguous overload for ?operator==? in ?c == p?
t.5.ii:14: note: candidates are: operator==(X, X) <built-in>
t.5.ii:14: note: operator==(int, int) <built-in>
t.5.ii:14: note: operator==(X, X) <built-in>
t.5.ii:7: note: bool coEnum<e1, e2>::operator==(coEnum<e1, e2>)
const [with e1 = A, e2 = X]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26278