This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50828] class template parameter not printed for member function template in candidate list
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Oct 2011 22:01:12 +0000
- Subject: [Bug c++/50828] class template parameter not printed for member function template in candidate list
- Auto-submitted: auto-generated
- References: <bug-50828-4@http.gcc.gnu.org/bugzilla/>
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