https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770
--- Comment #9 from Jonathan Wakely ---
(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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770
--- Comment #8 from m.cencora at gmail dot com ---
(In reply to Richard Biener from comment #7)
>
> Ah, interesting. I was looking for an answer whether
>
> new T
>
> may produce anything other than an object with dynamic type T or if there
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770
--- Comment #7 from Richard Biener ---
(In reply to m.cencora from comment #6)
> (In reply to Richard Biener from comment #0)
> > #include
> >
> > struct Base
> > {
> > virtual ~Base() {}
> > };
> > struct A : Base
> > {
> > virtual ~A() {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770
m.cencora at gmail dot com changed:
What|Removed |Added
CC||m.cencora at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770
Richard Biener changed:
What|Removed |Added
CC||jason at gcc dot gnu.org
--- Comment #