c++ vtable lossage
Richard Henderson
rth@twiddle.rth.home
Sat Jun 27 18:46:00 GMT 1998
[ Target alpha-linux-gnu ]
Somewhere recently something changed such that c++ vtables are not
output as constant data, but rather constructed at run time. Which
seems wasteful, but I'm fully prepared to belive that it is some
random side effect from lossage elsewhere.
What brought it to my attention was that it was wanting addresses
for pure virtual functions, which of course fails at link time.
Test case appended.
r~
struct A
{
virtual void x() = 0;
};
struct B : public A
{
B();
virtual void x();
};
B::B() { }
void B::x() { }
main()
{
B b;
}
More information about the Gcc
mailing list