From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C8F8E3865C3C; Fri, 15 Dec 2023 13:45:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8F8E3865C3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702647945; bh=NkH0Nqj0E7dt4sp1jjISe3D6BPZrFLPWwfBVuE9/1io=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Mf9JHuAciIAyS2/S5bQuIR02TShNXWRn/nEKmQWG9myAS7UxQRTtouMWGS40Uk4TD TyZyxmBMGIiPSOUxOAbS4zNyhTH7PVHFYnOCBZTTIyxIZLJxcwZvPdDoisXS/5XjFH ilmk3+HaNKLIv7BWToMHkNerlSn6eISVBkhC3+50= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107986] [12/13/14 Regression] Bogus -Warray-bounds diagnostic with std::sort Date: Fri, 15 Dec 2023 13:45:44 +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: 12.2.0 X-Bugzilla-Keywords: diagnostic, missed-optimization 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.4 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=3D107986 --- Comment #11 from Richard Biener --- We now diagnose std::__insertion_sort.isra (&a, &MEM [(void *)&a + 64B]); the reason is still the same, failure to compute a range for 'qa' which we fail to SCEV analyze. There's a duplicate bug about this.=