This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error with template instantiation
- To: egcs-bugs at cygnus dot com
- Subject: Internal compiler error with template instantiation
- From: Lavoie Philippe <lavoie at zeus dot genie dot uottawa dot ca>
- Date: Fri, 16 Oct 1998 12:23:08 -0400
In my efforts to try to specialize while still having template
control, I try this code and egcs didn'e like it.
gcc version egcs-2.92.15 19981012 (gcc2 ss-980609 experimental)
under Solaris2.5.1 with an Ultra sparc.
template <class T>
struct A{
fcn(T) ;
};
template <class T>
struct B{
};
template <class T>
struct A: public A< B<T> > {
fcn(B<T>) ;
};
template <class T>
A<B<T> >::fcn(B<T> a){
;
}
Have fun, and e-mail me if you can fix this :)
Phil