re PR libstdc++/14783 (Warning in std::set constructor at bits/stl_tree.h:403)

2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/14783
	* include/bits/stl_tree.h: Adjust initialization list order.

From-SVN: r80095
This commit is contained in:
Benjamin Kosnik 2004-03-30 21:04:19 +00:00 committed by Benjamin Kosnik
parent 0af5da7fb0
commit 06ce772609
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/14783
* include/bits/stl_tree.h: Adjust initialization list order.
2004-03-29 Loren J. Rittle <ljrittle@acm.org>
* testsuite/thread/pthread7-rope.cc: Update comment to reflect test.

View File

@ -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;