Index: include/__locale =================================================================== --- include/__locale +++ include/__locale @@ -201,6 +201,8 @@ friend class locale::__imp; }; +_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_runtime_error(const char*); + template inline _LIBCPP_INLINE_VISIBILITY locale::locale(const locale& __other, _Facet* __f) @@ -1229,8 +1231,6 @@ _LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS codecvt_byname) _LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS codecvt_byname) _LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS codecvt_byname) - -_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_runtime_error(const char*); template struct __narrow_to_utf8 Index: include/stdexcept =================================================================== --- include/stdexcept +++ include/stdexcept @@ -182,9 +182,6 @@ _LIBCPP_BEGIN_NAMESPACE_STD -// in the dylib -_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_runtime_error(const char*); - _LIBCPP_NORETURN inline _LIBCPP_ALWAYS_INLINE void __throw_logic_error(const char*__msg) {