Internal compiler error from g++ 2.95.2

James.Kanze@t-mobil.de James.Kanze@t-mobil.de
Mon Sep 3 08:11:00 GMT 2001


I've got an internal compiler error from 2.95.2.  (There is an error
in the code; I know. In the actual program, there was a similarly
named class which wasn't a template that I meant to inherit from.)  I
have no idea if it is present in later versions, but you might want to
check.

-----------------begin source.cc------------------
namespace Util {
template< class T >
class X
{
} ;
}

class RAS : public Util::X
{
};
-----------------end source.cc------------------

Results of compiling with g++ -v:
---------------------------------------------
$ g++ -v source.cc
Reading specs from
/opt/global/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /opt/global/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/cpp
-lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus
-Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__
-D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4)
-D__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) source.cc
/var/tmp/ccP5yLFd.ii
GNU CPP version 2.95.2 19991024 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /opt/global/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../..
/include/g++-3
 /usr/local/include
 /opt/global/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../..
/sparc-sun-solaris2.7/include
 /opt/global/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /opt/global/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/cc1plus
/var/tmp/ccP5yLFd.ii -quiet -dumpbase source.cc -version -o /var/tmp/ccgsvfDh.s
GNU C++ version 2.95.2 19991024 (release) (sparc-sun-solaris2.7) compiled by
GNU C version 2.95.2 19991024 (release).
source.cc:9: Internal compiler error.
source.cc:9: Please submit a full bug report.
source.cc:9: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for
instructions.
---------------------------------------------

And just in case (although I don't think it makes a difference):
---------------------------------------------
$ uname -a
SunOS dxcs8h 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-60
---------------------------------------------

--
James Kanze                                   mailto:kanze@gabi-soft.de
Beratung in objektorientierer Datenverarbeitung --
                             -- Conseils en informatique orientée objet
Ziegelhüttenweg 17a, 60598 Frankfurt, Germany, Tél.: +49 (0)69 19 86 27



More information about the Gcc-bugs mailing list