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]

[Bug c++/50828] class template parameter not printed for member function template in candidate list


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50828

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-22 22:01:12 UTC ---
Changing it would be consistent with the output for non-template member
functions of class templates:

template<typename T>
  struct A {
    void f() { }
  };

int main() {
  A<void> a;
  a.f(0);
}

t.C: In function âint main()â:
t.C:8:8: error: no matching function for call to âA<void>::f(int)â
t.C:8:8: note: candidate is:
t.C:3:10: note: void A<T>::f() [with T = void]
t.C:3:10: note:   candidate expects 0 arguments, 1 provided


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