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]
Other format: [Raw text]

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



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