------- Comment #5 from pinskia at gcc dot gnu dot org 2005-12-03 03:10 ------- (In reply to comment #4) > Created an attachment (id=10395) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10395&action=view) [edit] > gzipped preprocessed file for _cdsVector.cc from gcc 4.1.0
That is a different issue (again invalid), it comes down to: template <typename A> class b {double g();}; template<class A> int f(const b<A> &a) { return f(a.g()); } int f(const double &a) { return a; } the overloaded set for f in f is only the template function since that is what the C++ standard says it is. You can add a prototype before the template function which will fix the issue. This is: template<class T> float_type norm(const CDSVector<T>& v) And double norm(const double& v) Both in _cdsVector.cc. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25238