This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52065] Declaring template friend function of template class breaks template type inference.
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Jan 2012 12:55:53 +0000
- Subject: [Bug c++/52065] Declaring template friend function of template class breaks template type inference.
- Auto-submitted: auto-generated
- References: <bug-52065-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52065
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-31 12:55:53 UTC ---
template <typename T2> friend void f(A<T>, T2);
would be a partial specialization of f which is not allowed. I don't think
it is possible to do what you are trying to do.