internal compiler error

Maurizio Vitale mav@naxos.esat.kuleuven.ac.be
Tue May 26 01:26:00 GMT 1998


Under 
mav> g++ -v
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.28/specs
gcc version egcs-2.91.28 19980508 (gcc2 ss-980502 experimental)

The following:

class T {
public: void f () {} };

template<class C*>
class D {
  void f () { C::f(); }
}

D<T> d;
main()
{
  d.f();
}

gives:

cd /home/mav/develop/router-src/c++-tests/
g++ -c bad-template.cc 
bad-template.cc:4: Internal compiler error.
bad-template.cc:4: Please submit a full bug report to `egcs-bugs@cygnus.com'.

Compilation exited abnormally with code 1 at Tue May 26 10:25:40



More information about the Gcc-bugs mailing list