From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0FE87382FCB7; Fri, 30 Jun 2023 16:16:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0FE87382FCB7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688141806; bh=Hdt0g90Q5+6Kp/fDiqhTtuz1VqEx0D1hXP9iCOku27s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n6picaEljKbBI+AnZFERQSFuIKVlWXF443OixlYIRYAFALtkyTVu0GYyf6SHzTyaV e8721bY7J/B27qWGANC/WUHynr86WL5q2ZgwGa/njxv0N9LAGiM9cv2FC0aAdqxoYo kU4QdauI6KmIYTsywBe0J1B6bIebw3zS3IyMFj2c= From: "cheyenne.wills at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110501] Invalid use-after-free / realloc with a store/load happening Date: Fri, 30 Jun 2023 16:16:45 +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.3.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: cheyenne.wills at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: 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=3D110501 --- Comment #4 from Cheyenne Wills --- (In reply to Andrew Pinski from comment #3) > Oh GCC warns even with optimizations turned on ... Correct. For gcc-12 the failure only occurs with -O0. With gcc-13 (and later), the problem occurs with or without optimization.=