This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

other/4878: gcc 3.0.2 output crashes HP-UX linker

[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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]