[cfe-dev] Bug 6251 questions

Gonsolo gonsolo at gmail.com
Sat Mar 13 13:41:21 PST 2010


Anders,

it occurred to me that you switched on the new vtable code. The
following code still fails to link with:

bla.o:(.rodata+0x54): undefined reference to `virtual thunk to C::~C()'

Are you aware of this?

> class A {
>        public:
>                char c;
>                virtual ~A() {}
> };
> class B : virtual public A {};
> class C : virtual public A {};
> class D : public B, public C {};
>
> int main()
> {
>                D d;
> }

Thanks,

g




More information about the cfe-dev mailing list