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
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue