This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

.../include/g++/tree.h


I've noticed that this file differs from the current SGI STL release:

    *** include/g++/tree.h	Thu Oct 16 21:16:39 1997
    --- STL.SGI/tree.h	Mon Sep  8 19:34:58 1997
    ***************
    *** 524,531 ****
                                      // allocation/deallocation
          rb_tree(const Compare& comp = Compare())
    !       : key_compare(comp), node_count(0) { init(); }

          rb_tree(const rb_tree<Key, Value, KeyOfValue, Compare, Alloc>& x) 
    !       : key_compare(x.key_compare), node_count(0) { 
              header = get_node();
              color(header) = __rb_tree_red;
    --- 524,531 ----
                                      // allocation/deallocation
          rb_tree(const Compare& comp = Compare())
    !       : node_count(0), key_compare(comp) { init(); }

          rb_tree(const rb_tree<Key, Value, KeyOfValue, Compare, Alloc>& x) 
    !       : node_count(0), key_compare(x.key_compare) { 
              header = get_node();
              color(header) = __rb_tree_red;

The current egcs version of this file causes a member initializer
re-ordering warning to be flagged.  But the SGI version doesn't.

                -Fred






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]