From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D24D3858D1E; Wed, 17 May 2023 17:07:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D24D3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684343233; bh=Bu8ZShW1y1/gEzSXxQWpkMCF3vFDkQOadYmosc2oYro=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HL1cESxr+JDKStm8BtSK8UCYhkwwMLSJtv+5xZ04WUlGxyXYyxfk//t3hN2wL84l/ wMS5AmPJDpGgacwp4SbihuwYIRcQ1wMffZD9pZ1gzWtC30m3sVR2nPmDXO54XaXh/N sqULMMsqJPoXf61O4sWXemJPWhrt8KZPG3qCArYE= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/109770] [10/11/12/13/14 Regression] wrong(?) devirtualization Date: Wed, 17 May 2023 17:07:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: 10.5 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=3D109770 --- Comment #9 from Jonathan Wakely --- (In reply to Richard Biener from comment #0) > Base *p =3D new B; I think if there isn't really a B at this address, then the derived-to-base conversion would be undefined. So on that basis, the compiler should be allowed to assume that there reall= y is a B there.=