+2002-07-10 Graham Stott <graham.stott@btinternet.com>
+
+ * pt.c (template_parm_this_level_p, push_template_decl_real):
+ Pass depth as int pointer.
+
2002-07-10 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (unqualified_name_lookup_error): Declare it.
tree t;
void *data;
{
- int this_level = (int)data;
+ int this_level = *(int *)data;
int level;
if (TREE_CODE (t) == TEMPLATE_PARM_INDEX)
DECL_PRIMARY_TEMPLATE (tmpl) = tmpl;
if (DECL_CONV_FN_P (tmpl))
{
+ int depth = TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (tmpl));
+
/* It is a conversion operator. See if the type converted to
depends on innermost template operands. */
- if (for_each_template_parm
- (TREE_TYPE (TREE_TYPE (tmpl)),
- template_parm_this_level_p,
- (void *)TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (tmpl))))
+ if (for_each_template_parm (TREE_TYPE (TREE_TYPE (tmpl)),
+ template_parm_this_level_p,
+ &depth))
DECL_TEMPLATE_CONV_FN_P (tmpl) = 1;
}
}