https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100322
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- So it's just bad codegen for <=> comparisons. Thanks, Barry. The library part is a red herring, the operator> synthesized from <=> is fine to use, it just produces bad code (with GCC, but not Clang).