re PR libstdc++/14783 (Warning in std::set constructor at bits/stl_tree.h:403)
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 30 Mar 2004 21:04:19 +0000 (21:04 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 30 Mar 2004 21:04:19 +0000 (21:04 +0000)
2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>

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

From-SVN: r80095

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

index 2d6cc337d8f4bd8d1ea3704f037a2ab4c8ff356b..d78e3a949e00a60ee0eed8367288c7e7930cb57d 100644 (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.
index 676987312334c32e7dc0ffa2a6fe98ce9dc0d26a..ac9add899b925afe29b511504aead724eed4219e 100644 (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;