re PR libstdc++/60734 (Undefined behavior in g++-v4/bits/stl_tree.h)
PR libstdc++/60734 * include/bits/stl_tree.h (_Rb_tree::_M_end): Fix invalid cast. From-SVN: r209414
This commit is contained in:
parent
d8e4ce6d85
commit
4b3f982994
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-04-15 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
PR libstdc++/60734
|
||||
* include/bits/stl_tree.h (_Rb_tree::_M_end): Fix invalid cast.
|
||||
|
||||
2014-04-14 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* include/bits/stl_vector.h (_Vector_base::_Vector_impl,
|
||||
|
|
|
@ -526,11 +526,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
|
||||
_Link_type
|
||||
_M_end() _GLIBCXX_NOEXCEPT
|
||||
{ return static_cast<_Link_type>(&this->_M_impl._M_header); }
|
||||
{ return reinterpret_cast<_Link_type>(&this->_M_impl._M_header); }
|
||||
|
||||
_Const_Link_type
|
||||
_M_end() const _GLIBCXX_NOEXCEPT
|
||||
{ return static_cast<_Const_Link_type>(&this->_M_impl._M_header); }
|
||||
{ return reinterpret_cast<_Const_Link_type>(&this->_M_impl._M_header); }
|
||||
|
||||
static const_reference
|
||||
_S_value(_Const_Link_type __x)
|
||||
|
|
Loading…
Add table
Reference in a new issue