This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37167] New: C++ gives bogus error message (aliased to undefined symbol)
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2008 22:17:24 -0000
- Subject: [Bug c++/37167] New: C++ gives bogus error message (aliased to undefined symbol)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This seems to be caused by the unit-at-a-time changes, the following program
compiled cleanly with -O2 at version 138139 but gives an error message when
compiled (with -O2) at version 138140. I found it on IA64 HP-UX but was able
to reproduce it on x86_64 Linux.
class A { };
class B : public virtual A { };
class C { public: virtual class A* foo() const; };
class D : public virtual C { public: virtual struct B* foo() const; };
class B* D::foo() const { return 0; }
-----
x.cpp:7: error: 'B* *.LTHUNK1() const' aliased to undefined symbol
'_ZTch0_v0_n24_NK1D3fooEv
--
Summary: C++ gives bogus error message (aliased to undefined
symbol)
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sje at cup dot hp dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37167