[Bug c++/42983] [C++0x] Defaulted virtual destructor isn't virtual
jwakely dot gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 8 15:10:00 GMT 2010
------- Comment #16 from jwakely dot gcc at gmail dot com 2010-02-08 15:10 -------
(In reply to comment #15)
> Destroying an object from a base class pointer whose destructor is not virtual
> is an undefined behaviour according to the standard. I tend to think that
> silently removing the virutal property when considering the default
> declaration, introduces a serious bug in the code.
Yes, but you're using an experimental implementation of an incomplete
specification. Using it for serious code would be foolish, so I tend to agree
it's low priority
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42983
More information about the Gcc-bugs
mailing list