Internal compiler error instead of parse error with 2.91.52

Bernd Nottelmann nottelm@ptp283.uni-muenster.de
Thu Jul 30 13:51:00 GMT 1998


Hi,

this small piece of incorrect code produces an internal compiler error:

// ------------------
template <class T>

template <class T>
struct A {
public:
  A() {}

  A(const A<T>& b) {}
};
// ------------------

>g++  -Vegcs-2.91.52 -c testcase.C
testcase.C:8: Internal compiler error.
testcase.C:8: Please submit a full bug report to `egcs-bugs@cygnus.com'.

>gcc -Vegcs-2.91.52 -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.52/specs
gcc driver version egcs-2.90.29 980515 (egcs-1.0.3 release) executing gcc version egcs-2.91.52

Bernd





More information about the Gcc-bugs mailing list