egcs 1.0.1 internal compiler error 90

David Rourke rourke@waugh.cchem.berkeley.edu
Tue Feb 10 15:40:00 GMT 1998


Given the following code:

foo.cc
------
#include <iostream.h>
#include <vector.h>

template<class T> class mat
{
public:
  typedef vector<T> rowtype;
};

template<class T> void foo(T)
{
  mat<T>::rowtype x(3);

  for (mat<T>::rowtype::iterator p=x.begin(); p<x.end(); p++)
    cin >> *p;

  for (mat<int>::rowtype::iterator p=x.begin(); p<x.end(); p++)
    cout << *p << endl;
}

int main()
{
  foo(int(0));
  return 0;
}

It compiles as follows:

g++ -v -o foo foo.cc

Reading specs from /usr/local/lib/gcc-lib/mips-sgi-irix6.3/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
 /usr/local/lib/gcc-lib/mips-sgi-irix6.3/egcs-2.90.23/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -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) -Amachin
e(sgi) -D__EXCEPTIONS -D__CHAR_UNSIGNED__ -D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS -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_M
IPS_SZINT=32 -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32 -D_COMPILER_VERSION=601 -U__mips -D__mips=3 -D__mips64 foo.cc /var/tmp/cca006WH.ii
GNU CPP version egcs-2.90.23 980102 (egcs-1.0.1 release) [AL 1.1, MM 40] SGI running IRIX 6.x
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include/g++
 /usr/local/include
 /usr/local/mips-sgi-irix6.3/include
 /usr/local/lib/gcc-lib/mips-sgi-irix6.3/egcs-2.90.23/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/mips-sgi-irix6.3/egcs-2.90.23/cc1plus /var/tmp/cca006WH.ii -quiet -dumpbase foo.cc -version -o /var/tmp/cca006WH.s
GNU C++ version egcs-2.90.23 980102 (egcs-1.0.1 release) (mips-sgi-irix6.3) compiled by GNU C version egcs-2.90.23 980102 (egcs-1.0.1 release).
foo.cc: In function `void foo(T)':
foo.cc:14: Internal compiler error 90.
foo.cc:14: Please submit a full bug report to `egcs-bugs@cygnus.com'.





More information about the Gcc-bugs mailing list