https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94162
--- Comment #10 from Cameron <dacamara.cameron at gmail dot com> --- (In reply to Andrew Pinski from comment #9) > None of the testcases ICE in GCC 11+ I notice that if I change the repro to: #include <compare> struct S { int a; int* operator<=>(const S&) const = default; }; bool b = S{} < S{}; Notice the use of 'int*' as the comparison type. GCC11 series will still crash.