re PR c++/14389 (Out-of-line of overloaded template rejected)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Mon, 3 May 2004 10:11:19 +0000 (10:11 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Mon, 3 May 2004 10:11:19 +0000 (10:11 +0000)
commit4402147197bea00a19741bafefe7f19eb4c8467f
treed0cc887d089f42e5c3dd6d1a442b14113df99313
parent7a8e07c7d1bc8526e0d67cb7ae0dc51ba5b90f68
re PR c++/14389 (Out-of-line of overloaded template rejected)

PR c++/14389
* decl2.c (check_classfn): For member templates, compare also the
template parameters to match the declaration.
* cp-tree.h: Adjust declaration of check_classfn.
* decl.c (start_decl, grokfndecl): Adjust callers of check_classfn.
* friend.c (do_friend): Likewise.
* pt.c (tsubst_friend_function): Likewise.

PR c++/14389
* g++.dg/template/member5.C: New test.

From-SVN: r81426
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/friend.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/member5.C [new file with mode: 0644]