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
This commit is contained in:
Jonathan Wakely 2018-06-04 17:07:35 +01:00 committed by Jonathan Wakely
parent 20ce6adefb
commit dbda636dee
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2018-06-04 Jonathan Wakely <jwakely@redhat.com>
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 <jwakely@redhat.com>
PR libstdc++/78870 support std::filesystem on Windows

View file

@ -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