This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
other/4878: gcc 3.0.2 output crashes HP-UX linker
- From: porten at trolltech dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 14 Nov 2001 18:55:32 -0000
- Subject: other/4878: gcc 3.0.2 output crashes HP-UX linker
- Reply-to: porten at trolltech dot com
[Get raw message]
>Number: 4878
>Category: other
>Synopsis: gcc 3.0.2 output crashes HP-UX linker
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Wed Nov 14 10:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Harri Porten
>Release: gcc version 3.0.2
>Organization:
>Environment:
hppa1.1-hp-hpux10.20 (and 11.00)
/usr/bin/ld B.10.37 991028
bintuils 2.11.2
>Description:
The following piece of code will crash HP's system linker
(B.10.37) when trying to build a shared library:
struct X { virtual ~X(); };
struct Y { virtual void foo(); };
struct W : public X, public Y { virtual void foo(); };
struct Q : public W { };
void bar() { Q q; }
I know it mustn't be gcc's fault as /usr/bin/ld is at
least partly guilty because of it's fatal reaction.
But where is the real problem ?
>How-To-Repeat:
g++ -shared -fPIC crash.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: