Path: utzoo!utgpu!water!watmath!clyde!rutgers!columbia!garfield.columbia.edu!eppstein From: eppstein@garfield.columbia.edu (David Eppstein) Newsgroups: comp.lang.c++ Subject: bug in virtual dtor / subclass with mem of type superclass Message-ID: <5310@columbia.edu> Date: 13 Feb 88 19:05:25 GMT Sender: nobody@columbia.edu Organization: Columbia University CS Department Lines: 19 The following code gives me a horrible error (bus error) when C++ tries to process the dtor definition. The workaround is obvious (make sub a pointer) but I wanted to do it this way... I think we're still running 1.1; does this still happen in later versions? ------------ class a { a(); virtual ~a(); }; class b : public a { a sub; b(); ~b(); }; b::~b() { ; } -- David Eppstein eppstein@garfield.columbia.edu Columbia U. Computer Science