https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105651
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[12/13 Regression] bogus |[12 Regression] bogus "may |"may overlap" memcpy |overlap" memcpy warning |warning with std::string |with std::string and |and operator+ at -O3 |operator+ at -O3 Known to work| |13.0 Known to fail|13.0 | --- Comment #23 from Richard Biener <rguenth at gcc dot gnu.org> --- The testcase from comment#5 is fixed on trunk, the preprocessed source of course not as the workaround was in the library. Still, fixed in GCC 13.