https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105651
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |tree-optimization
Known to fail| |11.1.0, 12.1.0, 13.0
Summary|Failure compiling |bogus "may overlap" memcpy
|constexpr/__builtin_memcpy |warning with std::string
|on Cygwin with -std=c++20 |
Target| |x86_64-pc-cygwin
Keywords| |diagnostic
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> Builds on gcc-11,12,13 with -std=c++17, but all three fail with c++20.
std::string changes slightly with C++20 and IIRC more inlining happens which is
why the warning happens only with -std=c++20.