This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/41257] [4.5 Regression] Bogus error '*.LTHUNK0' aliased to undefined symbol '_ZN1CD1Ev'
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Sep 2009 13:07:41 -0000
- Subject: [Bug middle-end/41257] [4.5 Regression] Bogus error '*.LTHUNK0' aliased to undefined symbol '_ZN1CD1Ev'
- References: <bug-41257-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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