Bug report - Internal Compiler Error 2000

Philippe Bouchard boucp00@DMI.USherb.CA
Sun Nov 7 23:15:00 GMT 1999


The following should report some kind of parse error or something like
that:
#include <iostream.h>
template <class TYPE>
struct EXT {
   TYPE & func() {
      cout<<__PRETTY_FUNCTION__<<endl;
      return (TYPE &) *this; }
   };
struct A : EXT<A> {
   };
struct B : EXT<B>, A {
   };
void main() {
   A a;
   B b;
   a.A::template EXT<A>::func();
   b.B::template EXT<B>::func();
   };
Instead, it says:
ext.cc: In function `int main(...)':
ext.cc:19: Internal compiler error 2000.
ext.cc:19: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
ext.cc:19: See <URL: http://egcs.cygnus.com/faq.html#bugreport >
for details.
Using:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
PAB



More information about the Gcc-bugs mailing list