[Bug tree-optimization/105651] [12/13 Regression] bogus "may overlap" memcpy warning with std::string

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 21 17:38:41 GMT 2022


Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
           Keywords|                            |needs-bisection,
                   |                            |needs-reduction
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-06-21
             Status|UNCONFIRMED                 |NEW

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Slightly more reduced testcase (still has system headers):
#include <string>

std::string f()
   return "_" + std::string(" ");

More information about the Gcc-bugs mailing list