This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/15276] Erroneous Comparisons of Negative Characters
- From: "mckelvey at maskull dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 May 2004 03:18:24 -0000
- Subject: [Bug libstdc++/15276] Erroneous Comparisons of Negative Characters
- References: <20040504045136.15276.mckelvey@maskull.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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