https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114153
--- Comment #7 from Emmanuel Thomé <Emmanuel.Thome at inria dot fr> --- I just got hit by this bug (or some further instance of it). Interestingly, I notice that it creates an unexpected inconsistency in the behavior of std::sort and std::ranges::sort. I attach another reproducer. (for std::ranges::less, I believe it happens over here, but this is just a wild guess https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/ranges_cmp.h#L66 )
