https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111690
--- Comment #1 from Fedor Chelnokov <fchelnokov at gmail dot com> --- This program should be rejected as well due to ambiguity of equality comparison operator: ``` #include <compare> struct A { friend auto operator <=>(const A &, const A &) = default; friend auto operator <=>(A, A) = default; }; int main() { return A{} == A{}; } ``` as Clang does, but GCC not. Online demo: https://gcc.godbolt.org/z/o8o68vTWd