This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


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