aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-12-12 14:35:21 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-12-12 14:35:21 +0100
commit47a8c24690296baef0c5cdbea45e32de2a81028f (patch)
tree6d939c577453022f263c234ca292fc30ac850b1c
parentb29bdb8d5245cdabd72053a5e24db7b7866485bb (diff)
downloadgcc-47a8c24690296baef0c5cdbea45e32de2a81028f.zip
gcc-47a8c24690296baef0c5cdbea45e32de2a81028f.tar.gz
gcc-47a8c24690296baef0c5cdbea45e32de2a81028f.tar.bz2
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
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/class.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index fd5d4b7..ca4a321 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 842b11c..039dbd0 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. */