Internal compiler error when creating dwarf2 debug info on Irix-6.4

Tobias Gloth gloth@geomagic.com
Fri Oct 1 15:24:00 GMT 1999


On an Irix box like this:

	$ uname
	IRIX64 fornost 6.4 02121744 IP30

I installed gcc-2.95.1 today, by entering

	$ ./configure
	$ make bootstreap
	$ make install

which worked without a problem. When I tried to compile this:

	struct Num {
		enum { N = 1 };
	};
	
	template <class T>
	class Foo
	{
		int bar_[T::N];
	};
	
	Foo<Num> baz;

with this command:

	$ c++ --verbose -g -c foo.cpp

I got the following internal error:

	Reading specs from /raid/encap_irix/gcc-2.95.1/lib/gcc-lib/mips-sgi-irix6.4/2.95.1/specs
	gcc version 2.95.1 19990816 (release)
	 /raid/encap_irix/gcc-2.95.1/lib/gcc-lib/mips-sgi-irix6.4/2.95.1/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dunix -Dmips -Dsgi -Dhost_mips -DMIPSEB -D_MIPSEB -DSYSTYPE_SVR4 -D_LONGLONG -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ -D__unix__ -D__mips__ -D__sgi__ -D__host_mips__ -D__MIPSEB__ -D_MIPSEB -D__SYSTYPE_SVR4__ -D_LONGLONG -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ -D__unix -D__mips -D__sgi -D__host_mips -D__MIPSEB -D__SYSTYPE_SVR4 -Asystem(unix) -Asystem(svr4) -Acpu(mips) -Amachine(sgi) -D__EXCEPTIONS -D__CHAR_UNSIGNED__ -g -D__LANGUAGE_C -D_LANGUAGE_C -DLANGUAGE_C -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -D__EXTENSIONS__ -D_SGI_SOURCE -D_MIPS_FPSET=32 -D_MIPS_ISA=_MIPS_ISA_MIPS3 -D_ABIN32=2 -D_MIPS_SIM=_ABIN32 -D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32 -D_COMPILER_VERSION=601 -U__mips -D__mips=3 -D__mips64 foo.cpp /var/tmp/ccplZKid.ii
	GNU CPP version 2.95.1 19990816 (release) [AL 1.1, MM 40] SGI running IRIX 6.x
	#include "..." search starts here:
	#include <...> search starts here:
	 /raid/encap_irix/gcc-2.95.1/lib/gcc-lib/mips-sgi-irix6.4/2.95.1/../../../../include/g++-3
	 /raid/encap_irix/gcc-2.95.1/lib/gcc-lib/mips-sgi-irix6.4/2.95.1/../../../../mips-sgi-irix6.4/include
	 /raid/encap_irix/gcc-2.95.1/lib/gcc-lib/mips-sgi-irix6.4/2.95.1/include
	 /usr/include
	End of search list.
	The following default directories have been omitted from the search path:
	 /usr/local/include
	End of omitted list.
	 /raid/encap_irix/gcc-2.95.1/lib/gcc-lib/mips-sgi-irix6.4/2.95.1/cc1plus /var/tmp/ccplZKid.ii -quiet -dumpbase foo.cc -g -version -o /var/tmp/ccK1srzc.s
	GNU C++ version 2.95.1 19990816 (release) (mips-sgi-irix6.4) compiled by GNU C version 2.95.1 19990816 (release).
	foo.cpp:12: Internal compiler error in `add_bound_info', at dwarf2out.c:7376
	Please submit a full bug report.
	See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.

It compiles if I don't pass the -g in. Anyone can fix this?

    -Tobi

-- 
                    Tobias Gloth - gloth@geomagic.com
               1625 Discovery Way - Durham, NC 27703 - USA


More information about the Gcc-bugs mailing list