This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC3.0-release and multiple inheritance
- To: Simon Gee <simong at oz dot agile dot tv>
- Subject: Re: GCC3.0-release and multiple inheritance
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Thu, 02 Aug 2001 10:54:35 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- Organization: Codesourcery LLC
- References: <3B68CBC7.457DC00B@oz.agile.tv>
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