[Bug c++/26278] candidates list contains duplicates
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jan 26 12:34:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list