From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 508FC3858C98; Thu, 21 Mar 2024 22:01:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 508FC3858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711058497; bh=awc2grdqKHqYGOJsL2Dx18XEkTKAywQkndHYOLpA1Tk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h3oUpOkcHOUCUYyUSIcFka++ie4zixGLrsLwqJydY1u/JcLKugeDvNolbKtZVrcAF AKPIRgxV4zy9paWFlYJgZ98vPAIeZCDWd02MA/hvsAdM97vHp3g014Atw7vmfmmtWo n7XAKuXHFLMNCmoeT3amQjOC6aNlX4mRB5860lFA= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/93041] GCC 10 removes an infinite loop and causes a null pointer to dereferenced Date: Thu, 21 Mar 2024 22:01:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D93041 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #9 from Jakub Jelinek --- Note, C++26 will likely vote in tomorrow https://wg21.link/P2809R3 a change where loops like for (;;); or while (true) ; and similar will not be UB anymore. Though the loops in this PR and the dups aren't like that anyway and I thin= k we already treat unconditional loops as infinite even with -ffinite-loops.=