diff options
author | Jason Merrill <jason@redhat.com> | 2008-02-19 17:53:07 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2008-02-19 17:53:07 -0500 |
commit | cc85b4c564805534a69a0c23999c3e2c32d904b8 (patch) | |
tree | 8801972618be61c513de1050b18304b9abeaf700 /gcc/cp | |
parent | daac03177cc40f7b0bd32361ee16598f114552d9 (diff) | |
download | gcc-cc85b4c564805534a69a0c23999c3e2c32d904b8.zip gcc-cc85b4c564805534a69a0c23999c3e2c32d904b8.tar.gz gcc-cc85b4c564805534a69a0c23999c3e2c32d904b8.tar.bz2 |
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: r132455
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/pt.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6f016fc..81a243a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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-19 Jakub Jelinek <jakub@redhat.com> PR c++/35028 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 5931126..e45f6da 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -12137,6 +12137,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) @@ -12145,6 +12146,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 |