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: C++ PATCH: Fix ctor vtables for extreme virtual inheritance



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 {};


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