https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78420
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think this deserves a Defect report to the C++ committee because even though std::less requires total order, < and <= usage are undefined if used with two different arrays.