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