This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/8645: unnecessary non-0 checks in stl_tree.h
- From: erseklaszlo at chello dot hu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 19 Nov 2002 20:29:36 -0000
- Subject: libstdc++/8645: unnecessary non-0 checks in stl_tree.h
- Reply-to: erseklaszlo at chello dot hu
>Number: 8645
>Category: libstdc++
>Synopsis: unnecessary non-0 checks in stl_tree.h
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: pessimizes-code
>Submitter-Id: net
>Arrival-Date: Tue Nov 19 12:36:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Laszlo Ersek
>Release: 3.0.2
>Organization:
>Environment:
>Description:
This is not a bug, just two (I think) unnecessary non-0 checks in "g++-v3/bits/stl_tree.h", at lines 416 and 445. At these places, "__w->_M_left" and "__w->_M_right" can't be 0. (They are valid and red, which follows from lines 406-409, 414-415 and 435-438, 443-444).
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: