From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C70CC385800B; Wed, 19 Oct 2022 11:08:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C70CC385800B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666177728; bh=v5pr4qVgpXReFbVDMQSDVcrjHDVImTE+cy/W/J/dpmo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=R60pPiHPIUczdgi3khpJlxOfu62s+kwA22IuVB2fR5x1s6DFINxNpr8J8TxDe27KE cvi2M1ufKtOr/HUFpay3T204eo4HDvatQgm6lw21GGteauWUJ9ntn23NfH2v82GuGu dOWr2FDiGiyzJlMdirLKT1JfwwAmjvOCdAoVJ3vU= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105651] [12 Regression] bogus "may overlap" memcpy warning with std::string and operator+ at -O3 Date: Wed, 19 Oct 2022 11:08:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc cf_known_to_work cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105651 Richard Biener 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 --- 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.=