re PR c++/8355 (befriending a template specialization in another namespace)
authorMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 19 Nov 2005 02:25:55 +0000 (02:25 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 19 Nov 2005 02:25:55 +0000 (02:25 +0000)
commitabc088aad79d47b40da8a26e87815db09ab2d6eb
tree8bd4a3b77c67b5c91f1aed77d26b1a55d7c5ba5d
parent817f9ef2e52bbe4568264487acfa86c5bb2882d4
re PR c++/8355 (befriending a template specialization in another namespace)

PR c++/8355
* decl.c (grokfndecl): Set up DECL_TEMPLATE_INFO before calling
set_decl_namespace.
* name-lookup.c (set_decl_namespace):
PR c++/8355
* g++.dg/template/friend39.C: New test.

From-SVN: r107207
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend39.C [new file with mode: 0644]