This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Fix ctor vtables for extreme virtual inheritance
- To: Jason Merrill <jason_merrill at redhat dot com>
- Subject: Re: C++ PATCH: Fix ctor vtables for extreme virtual inheritance
- From: scott snyder <snyder at fnal dot gov>
- Date: 08 Jun 2001 21:38:55 -0500
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <m3ae3jz0x7.fsf@prospero.cambridge.redhat.com>
hi -
>The old code in dfs_accumulate_vtbl_inits failed to consider the
>possibility that a lost virtual base could still share its vptr with
>another lost virtual base within the sub-hierarchy of the base under
>construction. This patch fixes that.
With this patch, i'm now getting an ICE in dfs_accumulate_vtbl_inits
for the appended code (it didn't ICE before the patch went in).
I've submitted bug c++/3089 in gnats on this.
thanks,
sss
struct A
{
virtual ~A();
};
struct B
{
virtual ~B ();
};
struct C : virtual public B, virtual public A {};
struct D : virtual public A {};
struct E : virtual public C, virtual public D {};
struct F : virtual public E {};