This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal compiler error with template instantiation



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]