From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA6BC3858C20; Tue, 29 Nov 2022 13:41:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA6BC3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669729276; bh=YUg2Sqjy4kA4vE4xyAg968xnfAK+ZlbxcRGwLAap4/k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Yg8nMKtKAMyf1ZkDBSbdWk+gLbvDUrTBfxsE2zNX8dmg4Ax+Mms20lkt1IvUlomJh FRctiCuPzKGhvDb2L1TpJTWjq0//mVNvTMBH3OqkBGXthjih39Xs4djPhimq5hD1o5 SE779Ylkqk1IIB+2x4k4axTN3QwnD2jRtrxpHB6w= From: "carlosgalvezp at gmail dot com" 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: Tue, 29 Nov 2022 13:41:16 +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: carlosgalvezp at gmail dot com 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 #5 from Carlos Galvez --- > is not good programming practice. Sure. In the real world, we have asserts for this. However this is a problem when we build for Release mode, in which asserts are disabled and thus this warning pops up.=