]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/58627 (crash during compilation of boost testsuite)
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Dec 2013 13:35:21 +0000 (14:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 12 Dec 2013 13:35:21 +0000 (14:35 +0100)
PR c++/58627
* call.c (add_template_candidate_real): Don't call ggc_free on targs.

From-SVN: r205927

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

index fd5d4b72880bff5c4e27aeeadc084c3dfb0e202f..ca4a32113ef53a507f7b4c57e05ee710cbca3ce7 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 842b11c66c1183a172cd019a162c2643c053b602..039dbd0df3e9f5b3a078ee43aa81ae39f6a39cee 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.  */