From: Jonathan Wakely Date: Mon, 4 Jun 2018 16:07:35 +0000 (+0100) Subject: PR libstdc++/85930 fix misaligned reference X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbda636deefd3a51a33bdf1ab03de848b14b5a3d;p=gcc.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 88e7c6dce51..78a9f7fa072 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 b58273a79c5..22cb7eb46b1 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