c++/3598: more virtual inheritance ctor problems
snyder@fnal.gov
snyder@fnal.gov
Fri Jul 6 14:06:00 GMT 2001
>Number: 3598
>Category: c++
>Synopsis: more virtual inheritance ctor problems
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri Jul 06 14:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: scott snyder
>Release: 3.0.1 20010703 (prerelease)
>Organization:
>Environment:
System: Linux karma 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../egcs/configure --prefix=/usr/local/egcs --enable-threads=posix --enable-long-long
>Description:
The following program crashes when compiled with g++ 3.0.
When built with g++ 2.95, it runs without crashing.
This testcase was extracted from the Orbacus package.
This problem prevents me from building this package with gcc 3.0,
even though it worked ok with older versions of the compiler.
>How-To-Repeat:
----------------------------------------------------------
struct CORBA_Object
{
virtual ~CORBA_Object() {}
};
class CORBA_Repository : virtual public CORBA_Object {};
class CORBA_Object_skel : public virtual CORBA_Object {};
class CORBA_IRObject_skel : virtual public CORBA_Object,
virtual public CORBA_Object_skel
{
};
class CORBA_Repository_skel : virtual public CORBA_Repository,
virtual public CORBA_IRObject_skel
{
};
int main ()
{
new CORBA_Repository_skel;
return 0;
}
----------------------------------------------------------
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list