OSDN Git Service

2005-09-12 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Sep 2005 19:48:04 +0000 (19:48 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Sep 2005 19:48:04 +0000 (19:48 +0000)
PR libstdc++/23417
* include/bits/stl_list.h (_List_impl): Use member initialization
list for -Weffc++.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104187 138bc75d-0d04-0410-961f-82ee72b054a4

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

index eff6539..9b96940 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/23417
+       * include/bits/stl_list.h (_List_impl): Use member initialization
+       list for -Weffc++.
+
 2005-09-12  Paolo Carlini  <pcarlini@suse.de>
 
        PR libstdc++/23767
index 6aa67fe..3d954e9 100644 (file)
@@ -303,8 +303,9 @@ namespace _GLIBCXX_STD
       : public _Node_alloc_type
       {
        _List_node_base _M_node;
+
        _List_impl(const _Node_alloc_type& __a)
-       : _Node_alloc_type(__a)
+       : _Node_alloc_type(__a), _M_node()
        { }
       };