https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #9) > (In reply to Richard Biener from comment #0) > > Base *p = 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 really > is a B there. OK, that makes sense.