]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/34950 (ICE in svn boost math toolkit)
authorJason Merrill <jason@redhat.com>
Wed, 20 Feb 2008 04:47:47 +0000 (23:47 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 20 Feb 2008 04:47:47 +0000 (23:47 -0500)
        PR c++/34950
        * pt.c (resolve_overloaded_unification): Set processing_template_decl
        while we look for possible bindings.

From-SVN: r132470

gcc/cp/ChangeLog
gcc/cp/pt.c

index 85f19d70903f6a3d319195d5d761ac8096edd935..3727488fcd040719a863b806b3a5608de7290162 100644 (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
index e459da26153a57edfadf02ee9f0877bb7537bb8f..721f02bfe61a61ddfb0e6a627ca4f4b998d0fe43 100644 (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