c++/2687: GCC 2.95.2 Compiler internal error

yarivt@webmap.com yarivt@webmap.com
Sun Apr 29 12:46:00 GMT 2001


>Number:         2687
>Category:       c++
>Synopsis:       GCC 2.95.2 Compiler internal error
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 29 12:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Yariv Tal
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
Solaris 2.8 on SPARC
>Description:
When compiling the included code the compiler has an internal error.
Trying to duplicate the error I managed to create the attached short code.
NOTES:
If I has a semicolon after the declaration of CClass1b it compiles ok.
If I remove the declaration of CClass2 the compiler doesn't crash.
If I remove the call to the parent's function in releaseObj the compiler works ok.
>How-To-Repeat:
Simply compile the file with no flags (or -c flag). i.e.:
g++ exp.cpp
or 
g++ -c exp.cpp

>Fix:

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



More information about the Gcc-bugs mailing list