OSDN Git Service

PR c++/2513
authorlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Oct 2003 15:41:46 +0000 (15:41 +0000)
committerlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Oct 2003 15:41:46 +0000 (15:41 +0000)
commitc04baa536b30b91e31688f978004d36e589bbe44
tree595c9d55452a0d493a68f4caf4ea21d82b3b3b6d
parent84a81d890ce300b03b342fcfd000061824ad0fe9
PR c++/2513
* decl.c (make_typename_type): Use dependent_type_p.
(make_unbound_class_template): Likewise.
* pt.c (instantiate_class_template): Increment
processing_template_decl during substitution of template friend
function.  Preincrement processing_template_decl rather than
postincrement.
(get_mostly_instantiated_function_type): Increment
processing_template_decl during partial substitution of function
type.

* g++.dg/template/typename5.C: New test.

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