+2003-02-04 Giovanni Bajo <giovannibajo@gcc.gnu.org>
+
+ * pt.c (more_specialized_class): Increase processing_template_decl
+ while partial ordering.
+
2004-02-03 Mark Mitchell <mark@codesourcery.com>
PR c++/13925
tree targs;
int winner = 0;
+ /* Just like what happens for functions, if we are ordering between
+ different class template specializations, we may encounter dependent
+ types in the arguments, and we need our dependency check functions
+ to behave correctly. */
+ ++processing_template_decl;
targs = get_class_bindings (TREE_VALUE (pat1), TREE_PURPOSE (pat1),
add_outermost_template_args (full_args, TREE_PURPOSE (pat2)));
if (targs)
add_outermost_template_args (full_args, TREE_PURPOSE (pat1)));
if (targs)
++winner;
+ --processing_template_decl;
return winner;
}