https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66354
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Mon Jun 8 14:19:10 2015 New Revision: 224230 URL: https://gcc.gnu.org/viewcvs?rev=224230&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-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/include/bits/stl_algobase.h