public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: porten@trolltech.com
To: gcc-gnats@gcc.gnu.org
Subject: c++/5933: HP-UX: broken MI of virtual classes
Date: Wed, 13 Mar 2002 06:36:00 -0000	[thread overview]
Message-ID: <20020313142600.10184.qmail@sources.redhat.com> (raw)


>Number:         5933
>Category:       c++
>Synopsis:       HP-UX: broken MI of virtual classes
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 13 06:36:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Harri Porten
>Release:        gcc version 3.1 20020308
>Organization:
>Environment:
hppa1.1-hp-hpux11.00
>Description:
When compiling the class defined in handler.h and handler.cpp
into a shared library on HP-UX 11.00 (B.11.28 ld) a call to
start() from an application (main.cpp) succeeds but never
returns.

// handler.h
#ifndef HANDLER_H
#define HANDLER_H
class H1 { public: virtual void foo() { } };
class H2 { public: virtual void start() = 0; };
class H12 : public H1, public H2 { public: void start(); };
#endif

// handler.cpp
#include "handler.h"
void H12::start()
{
}

// main.cpp
#include "handler.h"
int main()
{
        H12 hnd;
        H2* h2 = &hnd;
        h2->start();
        return 0;
}
>How-To-Repeat:
g++ -shared -fPIC -o libhandler.sl handler.cpp
g++ main.cpp libhandler.sl
./a.out   (hangs forever)
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-03-13 14:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-13  6:36 porten [this message]
2002-04-05  5:36 Harri Porten
2002-04-07 15:31 danglin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020313142600.10184.qmail@sources.redhat.com \
    --to=porten@trolltech.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).