Commit 47a8c246 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/58627 (crash during compilation of boost testsuite)

	PR c++/58627
	* call.c (add_template_candidate_real): Don't call ggc_free on targs.

From-SVN: r205927
parent b29bdb8d
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> 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
* cp-tree.h (cilk_valid_spawn): New prototype. * cp-tree.h (cilk_valid_spawn): New prototype.
......
...@@ -7475,8 +7475,6 @@ resolve_address_of_overloaded_function (tree target_type, ...@@ -7475,8 +7475,6 @@ resolve_address_of_overloaded_function (tree target_type,
/* See if there's a match. */ /* See if there's a match. */
if (same_type_p (target_fn_type, static_fn_type (instantiation))) if (same_type_p (target_fn_type, static_fn_type (instantiation)))
matches = tree_cons (instantiation, fn, matches); matches = tree_cons (instantiation, fn, matches);
ggc_free (targs);
} }
/* Now, remove all but the most specialized of the matches. */ /* Now, remove all but the most specialized of the matches. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment