diff --git a/libcxx/include/ios b/libcxx/include/ios --- a/libcxx/include/ios +++ b/libcxx/include/ios @@ -695,6 +695,12 @@ mutable int_type __fill_; }; +extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ios; + +#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS +extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ios; +#endif + template inline _LIBCPP_INLINE_VISIBILITY basic_ios<_CharT, _Traits>::basic_ios(basic_streambuf* __sb) diff --git a/libcxx/include/streambuf b/libcxx/include/streambuf --- a/libcxx/include/streambuf +++ b/libcxx/include/streambuf @@ -490,11 +490,9 @@ } extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_streambuf; -extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ios; #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_streambuf; -extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ios; #endif _LIBCPP_END_NAMESPACE_STD