[Boost-bugs] [Boost C++ Libraries] #10987: bstree_algo::rotate_left bug

Subject: [Boost-bugs] [Boost C++ Libraries] #10987: bstree_algo::rotate_left bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-01 00:56:53


#10987: bstree_algo::rotate_left bug
------------------------------+-------------------------
 Reporter: apkulikov@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: intrusive
  Version: Boost 1.57.0 | Severity: Showstopper
 Keywords: |
------------------------------+-------------------------
 bstree_algo::rotate_left has parameter p_parent passed by const ref
 (invoked by rebalance_after_insertion).

 With set hook this is ref to temporary variable
 (default_rbtree_node_traits_impl::get_parent returns value).

 With any hook this is ref to node's variable
 (any_rbtree_node_traits::get_parent returns reference).

 This variable is used after node changed. Use local var?

 PS: are other rotate_XXX functions OK?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10987>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC