diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9b969403f58d..4c8db926d2b4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -3,6 +3,7 @@ PR libstdc++/23417 * include/bits/stl_list.h (_List_impl): Use member initialization list for -Weffc++. + * include/bits/stl_tree.h (_Rb_tree_impl): Same. 2005-09-12 Paolo Carlini diff --git a/libstdc++-v3/include/bits/stl_tree.h b/libstdc++-v3/include/bits/stl_tree.h index fab8117edbe4..e5a56737978a 100644 --- a/libstdc++-v3/include/bits/stl_tree.h +++ b/libstdc++-v3/include/bits/stl_tree.h @@ -403,7 +403,8 @@ namespace std _Rb_tree_impl(const _Node_allocator& __a = _Node_allocator(), const _Key_compare& __comp = _Key_compare()) - : _Node_allocator(__a), _M_key_compare(__comp), _M_node_count(0) + : _Node_allocator(__a), _M_key_compare(__comp), _M_header(), + _M_node_count(0) { this->_M_header._M_color = _S_red; this->_M_header._M_parent = 0;