]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/59956
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Jan 2014 20:44:50 +0000 (20:44 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Jan 2014 20:44:50 +0000 (20:44 +0000)
commit35f711cd4c8737cdac461352eeba25ce9953781f
treef24433780390756fc9922334753b790abea23c6e
parentf2b08775c6385145a3e128f1642bdcdf1b9c30f0
PR c++/59956
* friend.c (do_friend): Pass the TEMPLATE_DECL to add_friend if we
have a friend template in a class template.
* pt.c (tsubst_friend_function): Look through it.
(push_template_decl_real): A friend member template is
primary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207281 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/friend.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/friend55.C [new file with mode: 0644]