OSDN Git Service

PR c++/14389
authorgiovannibajo <giovannibajo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 May 2004 10:11:19 +0000 (10:11 +0000)
committergiovannibajo <giovannibajo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 May 2004 10:11:19 +0000 (10:11 +0000)
commit0122f52b69bf935883ebd07d311e7b50fedef3d7
treed0cc887d089f42e5c3dd6d1a442b14113df99313
parenta6b4eed212d8988d8713c7a3945841fa233898b9
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81426 138bc75d-0d04-0410-961f-82ee72b054a4
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]