[cfe-dev] Bug 6251 questions
Gonsolo
gonsolo at gmail.com
Wed Mar 10 05:38:36 PST 2010
Hi!
The following program
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;
}
fails with
bla.o:(.rodata+0x54): undefined reference to `virtual thunk to C::~C()'
collect2: ld returned 1 exit status
I have some questions:
1. Is this problem known?
2. How do I dump a vtable, since "clang++ -emit-llvm-only
-fdump-vtable-layouts" doesn't work for me?
3. I would like to fix this, but I have no idea how. How to proceed?
Thanks,
g
More information about the cfe-dev
mailing list