internal compiler error

Axel Schmitz-Tewes uzs59g@ibm.rhrz.uni-bonn.de
Fri Sep 4 06:48:00 GMT 1998


Dear Sirs,

because the compiler has forced  me I will send you a
(possibly incorrect programm)


> /*************************************************************/
>
> #include <iomanip.h>
>
> class ClassAOrB
> {
> public:
>   static int RealType() { return 0; }
> };
>
> class ClassA : public ClassAOrB
> {
> public:
>    static int RealType() { return 1; }
> };
>
> class ClassB : public ClassAOrB
> {
> public:
>   static int RealType() { return 2; }
> };
>
> template<class T> void PrintType<class T>()
> {
>   cout << "Object is of type #" << T::RealType() << endl;
> }
>
> int main(int argc, char* argv[])
> {
>     ClassAOrB a;
>     ClassA b;
>     ClassB c;
>   PrintType<ClassA>();
>   PrintType<ClassB>();
>   PrintType<CLassAOrB>();
>   return 0;
> }
>
> /**********************************************************
>
 which gives compiling with egcs 1.0.2 (from gnuwin)

(gcc version egcs-2.90.27 980315 (egcs-1.0.2 release))

the following messages


> ellol.cpp:24: Internal compiler error 9.
> ellol.cpp:24: Please submit a full bug report to `egcs-bugs@cygnus.com'.
>
  I use Win NT4(SP3).

Sincerely,

Axel Schmitz-Tewes



More information about the Gcc-bugs mailing list