On 2013-12-13 13:56, Andrzej Krzemienski wrote:
>
> There is no harm, except that this is defined as UB. Could the rule be
> relaxed to say that if the derived type is layout-compatible with the
> base class and its destructor is implicitly declared or explicitly
> defaulted, the behaviur is well defined?
This would turn a rather simple rule...
You're not getting rid of a category of undefined behavior.
This is fragile.
It's hard to teach.
the simpler rule is just better by virtue of being simpler.