From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C60EB3858D39; Tue, 14 Mar 2023 09:48:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C60EB3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678787287; bh=F4rXOJT+QURwGxjaQbREVOKovgFqY1uhwRIIAyBY1Ss=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ermG2/BKXB+mkMRF9zi1IYr1oRp75UulypWuKkNO5aKjqyk7s/wDPysrf5dn91+PZ fsK+eGAA87Ki07xdQC1E/z4f0EEShVJI6TnxdyECMM4wTZ1JwBNAul+Q8w8ZJ5R57J C+FZh/ee7m/ycrFCQgdEgtHDelO6PuyENUOE3QcI= From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109123] Bogus warning: pointer used after 'realloc' -Wuse-after-free with -O2 Date: Tue, 14 Mar 2023 09:48:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org 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=3D109123 --- Comment #2 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- This is probably the same underlying issue as PR 106119 and PR 104215, but unlike those, this testcase is heavily reduced without any header files (an= d it could be reduced further I believe).=