This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: GCC3.0-release and multiple inheritance


Simon Gee wrote:

> I'm seeing some strange behaviour with multiple inheritance and order of
> 
> declaration on a mipsel-linux target and I was wondering if anyone has
> come across/recognizes the behaviour I am seeing. Characteristically,
> when a method is called from a base pointer which does not appear first
> in the inheritance list then the destructor for that class gets called
> twice. Following this message is a test case that exhibits this
> behaviour (compile with -DWORKS for the correct version) - any
> comments/suggestions would be appreciated.
Are you sure it was a released 3.0 (and not a prerelease)? I fixed
a bug in the prerelease which had this signature. FWIW your sample
works as expected on i686-pc-linux-gnu.

Please verify that you are using a 3.0 release (or even better try the
3.0.1 prerelease from CVS). If the problem persists please file a GNATs
bug report.

nathan

-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org


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