https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(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.

Reply via email to