diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ebfdd3658d1..2a201ae11c2 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,11 @@ 2018-06-04 Jonathan Wakely + PR libstdc++/85930 + * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include + unconditionally. Remove redundant declaration. + [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Fix location of + alignment-specifier. + * include/bits/postypes.h (fpos): Define special members as defaulted. PR libstdc++/85930 diff --git a/libstdc++-v3/include/bits/shared_ptr_base.h b/libstdc++-v3/include/bits/shared_ptr_base.h index 22cb7eb46b1..6c5089afdda 100644 --- a/libstdc++-v3/include/bits/shared_ptr_base.h +++ b/libstdc++-v3/include/bits/shared_ptr_base.h @@ -49,9 +49,7 @@ #ifndef _SHARED_PTR_BASE_H #define _SHARED_PTR_BASE_H 1 -#if __cpp_rtti -# include -#endif +#include #include #include #include @@ -59,10 +57,6 @@ namespace std _GLIBCXX_VISIBILITY(default) { -#if !__cpp_rtti - class type_info; -#endif - _GLIBCXX_BEGIN_NAMESPACE_VERSION #if _GLIBCXX_USE_DEPRECATED @@ -516,7 +510,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION static const type_info& _S_ti() noexcept { - static constexpr alignas(type_info) _Sp_make_shared_tag __tag; + alignas(type_info) static constexpr _Sp_make_shared_tag __tag; return reinterpret_cast(__tag); } #endif