]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/decl2.c
re PR lto/59468 (ICE on invalid C++ code with LTO in gimple_get_virt_method_for_binfo...
[thirdparty/gcc.git] / gcc / cp / decl2.c
index 35707a041a1b34ba532c2fe88d46afe3743688bd..01a16d38a928cb0e00f3f217fc9a4dcdd88f59c5 100644 (file)
@@ -2660,7 +2660,6 @@ import_export_decl (tree decl)
                  comdat_p = (targetm.cxx.class_data_always_comdat ()
                              || (CLASSTYPE_KEY_METHOD (type)
                                  && DECL_DECLARED_INLINE_P (CLASSTYPE_KEY_METHOD (type))));
-                 mark_needed (decl);
                  if (!flag_weak)
                    {
                      comdat_p = false;