This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dtor pointers in ctor vtables


>>>>> "Nathan" == Nathan Sidwell <nathan@codesourcery.com> writes:

> It's not permissible to destruct the object inside a base class constructor

It doesn't make sense, but I don't see where it's prohibited.

> (you'd call the wrong destructor anyway). As an aid to debugging, why
> not simply use __cxa_pure_virtual? This patch does that. I don't think
> this is really an ABI change, as the case is ill-formed.

Is it?

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]