This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37095] New: [4.4 regression] Trouble with covariant return
- 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: 12 Aug 2008 12:55:39 -0000
- Subject: [Bug tree-optimization/37095] New: [4.4 regression] Trouble with covariant return
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following valid code snippet fails to compile on mainline when compiled
with "-O":
=======================================
struct A
{
virtual A* foo();
};
struct B : virtual A
{
virtual B* foo() { return 0; }
};
B b;
=======================================
bug.cc:11: error: 'B* *.LTHUNK1()' aliased to undefined symbol
'_ZTch0_v0_n32_N1B3fooEv'
--
Summary: [4.4 regression] Trouble with covariant return
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37095