http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58627

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org
          Component|tree-optimization           |c++

--- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
Started with r198099.

The following patch apparently "fixes" the issue:

diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index c587e55ac681..9547da539c57 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -7436,7 +7436,6 @@ resolve_address_of_overloaded_function (tree target_type,
          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.  */

Reply via email to