PR libstdc++/85930 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align the static variable correctly.
Tested powerpc64le-linux, committed to trunk.
commit b0aa443f66d21f904ea0144b16df4b14ef9df09c Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Jun 4 16:45:42 2018 +0100 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. 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<const type_info&>(__tag); } #endif