https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96497
Barry Revzin <barry.revzin at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |barry.revzin at gmail dot com --- Comment #1 from Barry Revzin <barry.revzin at gmail dot com> --- Reduced (https://godbolt.org/z/1bY545): #include <compare> // this one is okay static_assert(std::partial_ordering(std::strong_ordering::less) < 0); // this one fails with non-constant condition static_assert(std::partial_ordering(1 <=> 2) < 0);