https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93161
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Wesley Shillingford from comment #0) > However the last line fails to compile with MSVC. After checking the > standards library support document operator==(strong_ordering, > strong_ordering) is not mentioned: > http://wg21.link/p0768 That paper is more than two years old. The current working draft does specify the equality operators, e.g. [cmp.strongord] friend constexpr bool operator==(strong_ordering v, strong_ordering w) noexcept = default; > Even worse is that value types are not even standardised for comparison > operators! (thanks Bo Persson): > http://wg21.link/P1946 That paper was approved two months ago and is part of the current working draft. I don't see a libstdc++ bug here.