https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66327
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Mon Jun 8 14:42:02 2015 New Revision: 224233 URL: https://gcc.gnu.org/viewcvs?rev=224233&root=gcc&view=rev Log: PR libstdc++/66354 * include/bits/stl_algobase.h (__fill_a): Check length before calling memset. PR libstdc++/66327 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call memcmp for empty ranges. (__lexicographical_compare<true>::__lc): Likewise. Modified: branches/gcc-4_9-branch/libstdc++-v3/ChangeLog branches/gcc-4_9-branch/libstdc++-v3/include/bits/stl_algobase.h