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

Reply via email to