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

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 4 05:15:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-04 05:14 -------
Well a simple C program shows that std::strcmp just uses the C code:
#include <string.h>
int main()
{
int i = strcmp("z", "\300");
  printf("%d\n", i);
}

So I do not know if this is a bug as it is negative on powerpc-darwin and i686-pc-linux and i686-
unknown-openbsd3.1 which all uses different libc.

-- 


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



More information about the Gcc-bugs mailing list