This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error on template of template
- To: egcs-bugs at cygnus dot com
- Subject: Internal compiler error on template of template
- From: Guillaume Laurent <glaurent at worldnet dot fr>
- Date: 07 Jun 1998 11:12:08 +0200
The following code produces an internal compiler error with egcs 1.0.3:
class Foo;
template <class T>
template <class R>
void tfunc2(T* objptr, void *_methodptr)
{
typedef R (T::*Methodptr)(void);
Methodptr m = (Methodptr)_methodptr; // this is the faulty line
}
void meta_tfunc(Foo *f, int (Foo::*m_ptr)(void))
{
tfunc2(f, (void*)0);
}
--
Guillaume.
http://www.worldnet.fr/~glaurent