From: Jonathan Wakely Date: Mon, 4 Jun 2018 16:07:35 +0000 (+0100) Subject: PR libstdc++/85930 fix misaligned reference X-Git-Tag: basepoints/gcc-10~6178 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbda636deefd3a51a33bdf1ab03de848b14b5a3d;p=thirdparty%2Fgcc.git PR libstdc++/85930 fix misaligned reference PR libstdc++/85930 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align the static variable correctly. From-SVN: r261155 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 88e7c6dce515..78a9f7fa0725 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2018-06-04 Jonathan Wakely + + PR libstdc++/85930 + * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align + the static variable correctly. + 2018-05-24 Jonathan Wakely PR libstdc++/78870 support std::filesystem on Windows diff --git a/libstdc++-v3/include/bits/shared_ptr_base.h b/libstdc++-v3/include/bits/shared_ptr_base.h index b58273a79c52..22cb7eb46b16 100644 --- a/libstdc++-v3/include/bits/shared_ptr_base.h +++ b/libstdc++-v3/include/bits/shared_ptr_base.h @@ -516,7 +516,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION static const type_info& _S_ti() noexcept { - static constexpr _Sp_make_shared_tag __tag; + static constexpr alignas(type_info) _Sp_make_shared_tag __tag; return reinterpret_cast(__tag); } #endif