https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66327
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Fri May 29 13:28:54 2015 New Revision: 223865 URL: https://gcc.gnu.org/viewcvs?rev=223865&root=gcc&view=rev Log: PR libstdc++/66327 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call memcmp with null pointers. (__lexicographical_compare<true>::__lc): Do not call memcmp for empty ranges. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/stl_algobase.h