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

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Wed May 5 17:35:00 GMT 2004


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



More information about the Gcc-bugs mailing list