re PR c++/2513 (internal template template parameter causes ICE)
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Fri, 17 Oct 2003 15:41:46 +0000 (15:41 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Fri, 17 Oct 2003 15:41:46 +0000 (15:41 +0000)
commit9579624e7258fc1c5cf8e79a63bbe950deae7c17
tree595c9d55452a0d493a68f4caf4ea21d82b3b3b6d
parent5511bc2e55b130ef1ce47b47af354ca7876e5ff8
re PR c++/2513 (internal template template parameter causes ICE)

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.

From-SVN: r72611
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]