This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/26278] ambiguous overload candidates list contains duplicates



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]