https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94244
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- In other words, you have failed to meet the requirement that the comparison is a strict weak ordering. https://en.wikipedia.org/wiki/Weak_ordering#Strict_weak_orderings