From: Jakub Jelinek Date: Thu, 12 Dec 2013 13:35:21 +0000 (+0100) Subject: re PR c++/58627 (crash during compilation of boost testsuite) X-Git-Tag: releases/gcc-4.9.0~2119 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47a8c24690296baef0c5cdbea45e32de2a81028f;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fd5d4b72880b..ca4a32113ef5 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-12 Jakub Jelinek + + PR c++/58627 + * call.c (add_template_candidate_real): Don't call ggc_free on targs. + 2013-12-11 Balaji V. Iyer * cp-tree.h (cilk_valid_spawn): New prototype. diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 842b11c66c11..039dbd0df3e9 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -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. */