]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR c++/59469
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Jan 2014 18:35:53 +0000 (18:35 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Jan 2014 18:35:53 +0000 (18:35 +0000)
* pt.c (mark_decl_instantiated): Call mark_needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207366 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/pt.c

index 858510d06cc54e56c6bb125c0f8cc064848e5897..c10c2942b1ccd697b1b4035c1854f6a9431e909e 100644 (file)
@@ -1,5 +1,8 @@
 2014-01-31  Jason Merrill  <jason@redhat.com>
 
+       PR c++/59469
+       * pt.c (mark_decl_instantiated): Call mark_needed.
+
        PR c++/58672
        * decl2.c (handle_tls_init): Handle null init fn.
 
index ae5995b3f83c97b899d9ef5606e1ed643bf0ba96..7967db8b5b06e38adf12754047116b39e928362e 100644 (file)
@@ -17967,6 +17967,7 @@ mark_decl_instantiated (tree result, int extern_p)
   else
     {
       mark_definable (result);
+      mark_needed (result);
       /* Always make artificials weak.  */
       if (DECL_ARTIFICIAL (result) && flag_weak)
        comdat_linkage (result);