This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/23417] New: bits/stl_tree.h isn't -Weffc++ clean
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2005 07:51:49 -0000
- Subject: [Bug libstdc++/23417] New: bits/stl_tree.h isn't -Weffc++ clean
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/]
gcc version 4.0.2 20050806
Warning is "_M_header should be initialized in the member intialization
list". Ok, patch follows:
--- /usr/include/c++/4.0.1/bits/stl_tree.h~ 2005-07-12 06:15:28.000000000 +0200
+++ /usr/include/c++/4.0.1/bits/stl_tree.h 2005-08-09 15:43:32.000000000 +0200
@@ -401,7 +401,7 @@
_Rb_tree_impl(const _Node_allocator& __a = _Node_allocator(),
const _Key_compare& __comp = _Key_compare())
- : _Node_allocator(__a), _M_key_compare(__comp), _M_node_count(0)
+ : _Node_allocator(__a), _M_key_compare(__comp), _M_header(),
_M_node_count(0)
{
this->_M_header._M_color = _S_red;
this->_M_header._M_parent = 0;
--
Summary: bits/stl_tree.h isn't -Weffc++ clean
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23417