This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26278] candidates list contains duplicates
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2008 12:24:20 -0000
- Subject: [Bug c++/26278] candidates list contains duplicates
- References: <bug-26278-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2008-01-26 12:24 -------
Created an attachment (id=15025)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15025&action=view)
unincluded, slightly reduced testcase
g++-4.3 -S t.1.cpp
t.1.cpp: In function ?int main()?:
t.1.cpp:648: error: ambiguous overload for ?operator==? in ?c == p?
t.1.cpp:648: note: candidates are: operator==(X, X) <built-in>
t.1.cpp:648: note: operator==(int, int) <built-in>
t.1.cpp:648: note: operator==(X, X) <built-in>
t.1.cpp:601: 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