From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 98AB63830FFD; Thu, 8 Dec 2022 10:59:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98AB63830FFD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670497178; bh=tZf1zQsRvhk/NNeYZJP09PFQKRtH7IR5JkYlU8zvogM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sanHkuJ5TdIabkESYCfCrUAdWCw7o7l6B0wP2idUyoFAZSLLStWSm6oRIhx+oNDz8 rMeYNMn9aQbHGwvhau6paQdeqjnAMymX5h3Dnxny0YEGiZndm6AQczaLzI301iq/Yo ib0VZwqqpOnJ5BIUYNWrcUtz7nPahS1TJZ/6p9BE= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107699] [12/13 Regression] False positive -Warray-bounds, non-existent offset reported by GCC Date: Thu, 08 Dec 2022 10:59:38 +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: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D107699 --- Comment #10 from Richard Biener --- The change fixed the missing _2 =3D &data._M_elems + _1; if (&data._M_elems !=3D _2) goto ; [53.47%] else goto ; [46.53%] optimization only, the diagnostic is still there.=