PR c++/58627
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Dec 2013 13:35:21 +0000 (13:35 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Dec 2013 13:35:21 +0000 (13:35 +0000)
* call.c (add_template_candidate_real): Don't call ggc_free on targs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205927 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/class.c

index fd5d4b7..ca4a321 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-12  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/58627
+       * call.c (add_template_candidate_real): Don't call ggc_free on targs.
+
 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
 
        * cp-tree.h (cilk_valid_spawn): New prototype.
index 842b11c..039dbd0 100644 (file)
@@ -7475,8 +7475,6 @@ resolve_address_of_overloaded_function (tree target_type,
          /* See if there's a match.  */
          if (same_type_p (target_fn_type, static_fn_type (instantiation)))
            matches = tree_cons (instantiation, fn, matches);
-
-         ggc_free (targs);
        }
 
       /* Now, remove all but the most specialized of the matches.  */