This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: template specialization bug (3.2)
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: nbecker at hns dot com, <gcc-bugs at gcc dot gnu dot org>
- Date: Mon, 18 Nov 2002 12:37:33 -0600 (CST)
- Subject: Re: template specialization bug (3.2)
Neal,
your testcase reduces to
template <typename T> class complex {};
template<typename T> inline void Rnd (T x) { error; }
template<typename T> inline void Rnd (complex<T> x) {}
int main () {
complex<int> i;
Rnd<complex<int> >(i);
}
But to get the specialization of Rnd, you have to say
Rnd<int>
instead of
Rnd<complex<int> >
Regards
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth