[Bug c++/92847] [C++20] ambiguous overload for ‘operator==’ ?

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 6 20:44:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92847

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Laurent Stacul from comment #0)
>     bool operator==(const A<T>&) { return true; }

This member function should be const.


More information about the Gcc-bugs mailing list