This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Problem with virtual inheritance and destruction of arrays
- From: "Robinow, David" <drobinow at dayton dot adroit dot com>
- To: 'Bruno Bachelet' <bachelet at ifrance dot com>, cygwin at cygwin dot com
- Date: Fri, 30 Nov 2001 12:47:43 -0500
- Subject: RE: Problem with virtual inheritance and destruction of arrays
This has nothing to do with cygwin. It's a gcc 2.95 problem. Fixed in 3.0
-----Original Message-----
From: Bruno Bachelet [mailto:bachelet@ifrance.com]
Sent: Thursday, November 29, 2001 5:27 AM
To: cygwin@cygwin.com
Subject: Problem with virtual inheritance and destruction of arrays
I apologize in advance if the bug has already been reported. Normally when
calling the destructor of an object, the destructors of all the classes in
the hierarchy of inheritance are executed. Imagine you have a virtual
inheritance at some place in the hierarchy, the destruction works well with
a single object, but it doesn't work with an array of objects.
Here is an example I compiled with Cygwin 1.3.2 and Cygwin 1.3.5 using no
particular optimization flag.
...
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/