https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note, while the patch makes the warning go away, it exports _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE15_M_replace_coldEPcmPKcmm@@GLIBCXX_3.4.21 _ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE15_M_replace_coldEPwmPKwmm@@GLIBCXX_3.4.21 which is certainly undesirable. Either we'd need to make sure it isn't exported, or export @@GLIBCXX_3.4.30 instead and somehow arrange for out of line copy being used from libstdc++ rather than emitted into every library or binary that uses it.