method called realloc segvs egcs-1.0.2

Andrew Fitzgibbon awf@robots.ox.ac.uk
Tue Apr 28 05:05:00 GMT 1998


Hi,

ICE on the following code with -O2 disappears with -Drealloc=foobar
	
	template <class T>
	struct A
	{
	  void f();
	  void realloc(int);
	};
	
	template <class T> void A <T>::realloc(int){}
	template <class T> void A <T>::f () { realloc (1); }
	
	template class A< char  >;
	
% egcs -v -O2 t.cc
	
	Reading specs from /homes/39/pkg/egcs-1.0.2/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.27/specs
	gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
	 /homes/39/pkg/egcs-1.0.2/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.27/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -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__OPTIMIZE__ -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) t.cc /var/tmp/ccuySYg_.ii
	GNU CPP version egcs-2.90.27 980315 (egcs-1.0.2 release) (sparc)
	#include "..." search starts here:
	#include <...> search starts here:
	 /homes/39/pkg/egcs-1.0.2/include/g++
	 /usr/local/include
	 /homes/39/pkg/egcs-1.0.2/sparc-sun-solaris2.6/include
	 /homes/39/pkg/egcs-1.0.2/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.27/include
	 /usr/include
	End of search list.
	 /homes/39/pkg/egcs-1.0.2/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.27/cc1plus /var/tmp/ccuySYg_.ii -quiet -dumpbase t.cc -O2 -version -o /var/tmp/ccuySYg_.s
	GNU C++ version egcs-2.90.27 980315 (egcs-1.0.2 release) (sparc-sun-solaris2.6) compiled by GNU C version 2.7.2.2.
	t.cc: In method `void A<char>::f()':
	t.cc:9: Internal compiler error.
	t.cc:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.



More information about the Gcc-bugs mailing list