]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/pt.c
re PR c++/509 (G++ forbids template specialization as ambiguous)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Wed, 21 Jul 2004 00:06:45 +0000 (00:06 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Wed, 21 Jul 2004 00:06:45 +0000 (00:06 +0000)
commit5fe7b6549e1d588e3b0ae4015d61080bac3dbf37
tree1312c53d8cf381419e2804cabd75d2dfe5541a6a
parent66e4969bb93f7012d6cc11131132424ea336cd4e
re PR c++/509 (G++ forbids template specialization as ambiguous)

PR c++/509
* pt.c (determine_specialization): New parameter template_count.
Disambiguate between member templates and member functions counting
the template headers.
(check_explicit_specialization): Update caller.
(tsubst_friend_function): Likewise.

PR c++/509
* g++.dg/template/spec15.C: New test.

From-SVN: r84982
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/spec15.C [new file with mode: 0644]