[Bug c++/78420] std::less<T*> is not a total order with -O2 enabled

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 18 19:55:00 GMT 2016


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.


More information about the Gcc-bugs mailing list