https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111379
Jiang An <de34 at live dot cn> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |de34 at live dot cn --- Comment #1 from Jiang An <de34 at live dot cn> --- There's (or will be) a new DR CWG2749 which tentatively ready now. https://cplusplus.github.io/CWG/issues/2749.html It seems that the old resolution in CWG2526 was wrong, and the comparison should be constexpr-friendly. BTW I don't think there was anything specifying that "the comparison would have *undefined* behaviour" before CWG2526.