delete not called

Tudor Hulubei tudor@cs.unh.edu
Fri Apr 17 14:49:00 GMT 1998


  On Fri, 17 April 1998, Warner Losh wrote:
  > 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.

I have updated my CVS tree and managed to compile the latest version
on Linux (now that the compilation failure has been fixed) and the
problem is gone.  Both calls to delete are now correctly generated.

I am running in some other compiler failures, but this time they are
internal compiler errors.  I couln't reproduce it in a smaller
example, but I'll keep trying :-)

/home/tudor/usr/include/g++/stl_deque.h: In method `void deque<CSPConstraint *,__default_alloc_template<true,0>,0>::clear<CSPConstraint *, alloc, 0>()':
/home/tudor/usr/include/g++/stl_deque.h:769: Internal compiler error.
/home/tudor/usr/include/g++/stl_deque.h:769: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [CSPac3.o] Error 1

I haven't had this problem with 980406.

Regards,
Tudor



More information about the Gcc mailing list