delete not called

Warner Losh imp@village.org
Fri Apr 17 07:07:00 GMT 1998


In message < 13622.59339.352264.243086@hal2.dyn.ml.org > Tudor Hulubei writes:
: Is this a known problem?

It is doing the right thing.

: class X { public: ~X() {} };
: class Y : public X {};

You need to make ~X virtual.

Warner



More information about the Gcc mailing list