From 06ce772609f34249723fe45a49d9681827101aac Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Tue, 30 Mar 2004 21:04:19 +0000 Subject: [PATCH] re PR libstdc++/14783 (Warning in std::set constructor at bits/stl_tree.h:403) 2004-03-30 Benjamin Kosnik PR libstdc++/14783 * include/bits/stl_tree.h: Adjust initialization list order. From-SVN: r80095 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/stl_tree.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2d6cc337d8f..d78e3a949e0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-03-30 Benjamin Kosnik + + PR libstdc++/14783 + * include/bits/stl_tree.h: Adjust initialization list order. + 2004-03-29 Loren J. Rittle * testsuite/thread/pthread7-rope.cc: Update comment to reflect test. diff --git a/libstdc++-v3/include/bits/stl_tree.h b/libstdc++-v3/include/bits/stl_tree.h index 67698731233..ac9add899b9 100644 --- a/libstdc++-v3/include/bits/stl_tree.h +++ b/libstdc++-v3/include/bits/stl_tree.h @@ -399,7 +399,7 @@ namespace std _Rb_tree_impl(const _Node_allocator& __a = _Node_allocator(), const _Key_compare& __comp = _Key_compare()) - : _Node_allocator(__a), _M_node_count(0), _M_key_compare(__comp) + : _Node_allocator(__a), _M_key_compare(__comp), _M_node_count(0) { this->_M_header._M_color = _S_red; this->_M_header._M_parent = 0;