This is the mail archive of the gcc@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]

c++ vtable lossage


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


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