This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug middle-end/41257] [4.5 Regression] Bogus error '*.LTHUNK0' aliased to undefined symbol '_ZN1CD1Ev'



------- 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


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