From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E12F43858D32; Fri, 12 Jan 2024 10:53:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E12F43858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705056836; bh=EgcFl8jIyEXLmtu8lEGyn2Byr/cs7MBgB3wAyhmij8k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QB/tCj+zCKE0vtMJmqjFBF/8gKb2IXjB4RobzSTnzgi2ftHXXNgofHu2jMgCubMcJ DyQ4gkS7ZdgdnmHsbZWkGUR/SJdqQdyo2S2g0uUh3mlhcETksZ9qDsEm1scmK2hYOk nUgnBpPdZOyq+NXQCF1K4x8ay2AdILRgW+wPZzs8= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/109770] [11/12/13/14 Regression] wrong(?) devirtualization Date: Fri, 12 Jan 2024 10:53:54 +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: rguenth 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: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #11 from Richard Biener --- (In reply to Jonathan Wakely from comment #9) > (In reply to Richard Biener from comment #0) > > Base *p =3D new B; >=20 > I think if there isn't really a B at this address, then the derived-to-ba= se > conversion would be undefined. >=20 > So on that basis, the compiler should be allowed to assume that there rea= lly > is a B there. OK, that makes sense.=