https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98712
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Similarly for #include <compare> struct S { int s = 0; S(int s) : s(s) {} auto operator<=>(const S&) const = default; }; struct T : S { T(int s) : S(s) {} constexpr auto operator<=>(const T&) const = default; }; int main() { return T(0) >= T(1); } // Expected 0, but returns 1