[Bug c++/49568] New: [4.7 regression] g++.dg/torture/pr41257-2.C FAILs to link on Tru64 UNIX
ro at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 28 17:38:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49568
Summary: [4.7 regression] g++.dg/torture/pr41257-2.C FAILs to
link on Tru64 UNIX
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: link-failure
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ro@gcc.gnu.org
Host: alpha-dec-osf5.1b
Target: alpha-dec-osf5.1b
Build: alpha-dec-osf5.1b
Between 20110502 and 20110518, g++.dg/torture/pr41257-2.C started to FAIL
on Tru64 UNIX:
A::~A()
typeinfo for A
collect2: error: ld returned 1 exit status
which is a link error (undefined symbols). This is a regression from the 4.6
branch. While the input file is identical, the generated code is far longer on
mainline, and contains a call to an undefined function _ZN1AD2Ev (A::~A()).
This may be related to the fact that Tru64 UNIX doesn't support weak
definitions,
but the code is plain wrong.
I'm attaching assembler output from 4.6 and 4.7.
More information about the Gcc-bugs
mailing list