PR libstdc++/60734
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Apr 2014 10:52:06 +0000 (10:52 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Apr 2014 10:52:06 +0000 (10:52 +0000)
* include/bits/stl_tree.h (_Rb_tree::_M_end): Fix invalid cast.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209414 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_tree.h

index 54ec30e..e11f1a9 100644 (file)
@@ -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,
index 4bc3c60..288c9fa 100644 (file)
@@ -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)