[cfe-dev] is delete on abstract with non-virtal ever safe?

ATTIA, Emmanuel emmanuel.attia at philips.com
Sat Oct 5 07:48:49 PDT 2013


> You can't reason like that about undefined behaviour. You deleted an object thorough the wrong static type and the dtor is not virtual, so you've already lost.

I didn't delete the object I called a specific delete operator on its pointer. There is a big difference.

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131005/c068e80f/attachment.html>


More information about the cfe-dev mailing list