mirror of git://gcc.gnu.org/git/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
This commit is contained in:
parent
20ce6adefb
commit
dbda636dee
|
|
@ -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>
|
2018-05-24 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
PR libstdc++/78870 support std::filesystem on Windows
|
PR libstdc++/78870 support std::filesystem on Windows
|
||||||
|
|
|
||||||
|
|
@ -516,7 +516,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
static const type_info&
|
static const type_info&
|
||||||
_S_ti() noexcept
|
_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);
|
return reinterpret_cast<const type_info&>(__tag);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue