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]

c++/5038: Internal error: Segmentation fault



>Number:         5038
>Category:       c++
>Synopsis:       Internal error: Segmentation fault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 06 09:56:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Gianni Mariani
>Release:        unknown-1.0
>Organization:
>Environment:
Configured with: ./configure 
Thread model: single
gcc version 3.0

Linux jaz 2.4.9 #2 SMP Thu Aug 23 08:17:26 PDT 2001 i686 unknown
>Description:

The following code causes a Segmentation fault :

g++ -c broken.cpp
broken.cpp:30: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

----- broken.cpp -------

class AAAA {
public:
        virtual int hhhh() = 0;

};

class DDDD : public virtual AAAA {
public:
        virtual int ffff( int vvvv ) = 0;

};

class AAAA_Impl : public virtual AAAA {
public:
        virtual int hhhh();

};

class DDDD_Basic : public virtual DDDD, public virtual AAAA_Impl {
public:

        virtual int ffff( int vvvv );

};

class CCCC_Red
        : virtual public AAAA_Impl,
          virtual public DDDD_Basic
{
}
>How-To-Repeat:

Compile the program

>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]