------- Comment #6 from reichelt at gcc dot gnu dot org  2009-09-09 13:07 
-------
Well, now I can't link the following program anymore:

===============================
struct A
{
  virtual ~A();
};

struct B : virtual A
{
  virtual ~B() {}
};

int main()
{
  return 0;
}
===============================

/tmp/ccybc7FB.o(.gnu.linkonce.t._ZN1BD0Ev+0x47): In function `B::~B()':
: undefined reference to `A::~A()'
/tmp/ccybc7FB.o(.gnu.linkonce.t._ZN1BD1Ev+0x47): In function `B::~B()':
: undefined reference to `A::~A()'
/tmp/ccybc7FB.o(.gnu.linkonce.r._ZTI1B+0x18): undefined reference to `typeinfo
for A'
collect2: ld returned 1 exit status

A definition for ~A() is missing, but B and A aren't used so that shouldn't
matter. At least it didn't matter in previous versions.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41257

Reply via email to