From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dan Vasaru" To: Subject: Bug Date: Thu, 04 Feb 1999 06:49:00 -0000 Message-id: <001201be504c$d3471460$34acf181@medisin.ntnu.no> X-SW-Source: 1999-02/msg00102.html List-Id: Hello, I tried to compile the code sequence below using egcs-2.91.60, which resulted on Internal Compiler Error on the first line in the template member function array. Basically, I am trying to take the adderss of an instantation of a template member function. Is there something wrong with my code or is the compiler broken ? Funny enough, VC6.0 also gives Internal Compiler Error on the same line. Furthermore, VC6 crashes also on : template void A::myfn(char*); which egcs accepts. ////////////////////////////////////////////////////////////////////////////////   template class B { template void fn(O*) {}; };   class A { public: typedef void (A::*afn)(void); static afn compute_table[3]; template void myfn(T*data) { *data += 10;} };   fn() { A*t=0; t->myfn((char*)0); t->myfn((float*)0); t->myfn((double*)0); }   template void A::myfn(char*); // ok egcs, crash in vc6 //template void B::fn(char*);   A::afn A::compute_table[]= { A::myfn,  // crashes both egcs and vc6 &A::myfn, // same here &A::myfn };   Â