[Bug libstdc++/15276] Erroneous Comparisons of Negative Characters

mckelvey at maskull dot com gcc-bugzilla@gcc.gnu.org
Wed May 5 03:18:00 GMT 2004


------- Additional Comments From mckelvey at maskull dot com  2004-05-05 03:18 -------
>> I suspect that was is really needed is a clarification in the standard: the
>> specification for traits::compare, strictly speaking is inconsistent with
>> std::strcmp.

Well, instead, why not just have C++ work properly, as defined reasonably by the
standard in Table 37? std::strcmp is not mentioned, and is therefore irrelevant.
compare is inconsistent with lt; do you think that codifying that behavior is a
"clarification", or is it more akin to saying that, when convenient, 2 + 2 = 5?

Referring to the comments in

http://gcc.gnu.org/ml/libstdc++/2004-05/msg00009.html

there is nothing pedantic about the definition of compare in Table 37, it is
clearly and simply stated.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15276



More information about the Gcc-bugs mailing list