https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70620
--- Comment #4 from Jakub Jelinek ---
FYI, the change in behavior is that ipa-devirt or what changes the destructor
call into __builtin_unreachable () and anything can happen then.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70620
--- Comment #3 from Zhendong Su ---
(In reply to Jonathan Wakely from comment #2)
> Your code is equivalent to:
>
> delete reinterpret_cast(static_cast(new E));
>
> which means the conversion is not done safely, and you get a D* that doesn't
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70620
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70620
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #1