libstdc++/8645: unnecessary non-0 checks in stl_tree.h

erseklaszlo@chello.hu erseklaszlo@chello.hu
Tue Nov 26 18:36:00 GMT 2002


>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:



More information about the Gcc-prs mailing list