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: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 May 2004 17:35:57 -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 pcarlini at suse dot de 2004-05-05 17:35 -------
> No, they already compare differently (hint: think of a std::string
> that contains a null character).
I know well about *that* difference, but I'm not persuaded anyway, since the
same inconsistency happens considering basic_string-basic_string,
basic_string-char_array, char_array-char_array: again, the internals of
the two corresponding string::compare overloads would compare signed, memcmp
unsigned.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15276