https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106199
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |tree-optimization Summary|vector::insert optimization |incorrect memcpy writing 1 |is broken with gcc-12 |or more bytes into a region | |of size 0 overflows the | |destination with | |std::vector::insert . --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- /opt/compiler-explorer/gcc-trunk-20220705/include/c++/13.0.0/bits/stl_algobase.h:431:30: error: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 1 or more bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]