From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 134BD385781D; Wed, 27 Apr 2022 16:48:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 134BD385781D From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/104492] [12 Regression] Bogus dangling pointer warning at -O3 Date: Wed, 27 Apr 2022 16:48:12 +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: 12.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2022 16:48:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104492 --- Comment #12 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:948e8e401023f6c3153f6d0c449bc5c2899ee7b7 commit r12-8289-g948e8e401023f6c3153f6d0c449bc5c2899ee7b7 Author: Jakub Jelinek Date: Wed Apr 27 18:47:10 2022 +0200 testsuite: Add testcase for dangling pointer equality bogus warning [PR104492] On Wed, Apr 27, 2022 at 12:02:33PM +0200, Richard Biener wrote: > I did that but the reduction result did not resemble the same failure > mode. I've failed to manually construct a testcase as well. Possibly > a testcase using libstdc++ but less Qt internals might be possible. Here is a testcase that I've managed to reduce, FAILs with: FAIL: g++.dg/warn/pr104492.C -std=3Dgnu++14 (test for bogus messages,= line 111) FAIL: g++.dg/warn/pr104492.C -std=3Dgnu++17 (test for bogus messages,= line 111) FAIL: g++.dg/warn/pr104492.C -std=3Dgnu++20 (test for bogus messages,= line 111) on both x86_64-linux and i686-linux without your commit and passes with= it. 2022-04-27 Jakub Jelinek PR middle-end/104492 * g++.dg/warn/pr104492.C: New test.=