------- Comment #6 from janis at gcc dot gnu dot org 2006-01-16 20:34 ------- A regression hunt on powerpc-linux using the testcase from comment #1 identified the following patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=72611 r72611 | lerdsuwa | 2003-10-17 15:41:46 +0000 (Fri, 17 Oct 2003) | 13 lines 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. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25342