re PR c++/34950 (ICE in svn boost math toolkit)

PR c++/34950
        * pt.c (resolve_overloaded_unification): Set processing_template_decl
        while we look for possible bindings.

From-SVN: r132470
This commit is contained in:
Jason Merrill
2008-02-19 23:47:47 -05:00
committed by Jason Merrill
parent 7ea26a90db
commit bb78d95d3a
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2008-02-19 Jason Merrill <jason@redhat.com>
PR c++/34950
* pt.c (resolve_overloaded_unification): Set processing_template_decl
while we look for possible bindings.
2008-02-13 Jason Merrill <jason@redhat.com>
PR c++/34774

View File

@@ -10107,6 +10107,7 @@ resolve_overloaded_unification (tree tparms,
if (TREE_CODE (fn) != TEMPLATE_DECL)
continue;
++processing_template_decl;
subargs = get_bindings (fn, DECL_TEMPLATE_RESULT (fn),
expl_subargs, /*check_ret=*/false);
if (subargs)
@@ -10115,6 +10116,7 @@ resolve_overloaded_unification (tree tparms,
good += try_one_overload (tparms, targs, tempargs, parm,
elem, strict, sub_strict, addr_p);
}
--processing_template_decl;
}
}
else if (TREE_CODE (arg) != OVERLOAD