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
>Originator:     Yariv Tal
>Release:        gcc version 2.95.2 19991024 (release)
Solaris 2.8 on SPARC
When compiling the included code the compiler has an internal error.
Trying to duplicate the error I managed to create the attached short code.
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.
Simply compile the file with no flags (or -c flag). i.e.:
g++ exp.cpp
g++ -c exp.cpp



More information about the Gcc-bugs mailing list