Bug#167439: [fixed in gcc-3.x] stdbool.h broken
Package: gcc-2.95
Version: 1:2.95.4-12
Severity: normal
"bool" from stdbool.h doesn't have proper semantics with 2.95:
falk@juist:/tmp% cat test.c
#include <stdbool.h>
#include <stdio.h>
int main() {
bool b =3D 23;
if (b =3D=3D true)
puts("good");
else
puts("bad");
return 0;
}
falk@juist:/tmp% gcc-2.95 -W -Wall -ansi -pedantic test.c && ./a.out
bad
falk@juist:/tmp% gcc-3.2 -W -Wall -ansi -pedantic test.c && ./a.out =
good
As 2.95 seems to lacks _Bool to implement this properly, stdbool.h
should probably be removed, rather than silently generating (pretty
evil IMHO) bad code.
Falk
-- System Information:
Debian Release: testing/unstable
Architecture: alpha
Kernel: Linux juist 2.4.20-rc1 #1 Tue Oct 29 21:45:30 CET 2002 alpha
Locale: LANG=3DC, LC_CTYPE=3Dde_DE@euro
Versions of packages gcc-2.95 depends on:
ii binutils 2.13.90.0.10-2 The GNU assembler, linker and =
bina
ii cpp-2.95 1:2.95.4-12 The GNU C preprocessor.
ii gcc 2:2.95.4-17 The GNU C compiler.
ii libc6.1 2.3-1 GNU C Library: Shared librarie=
s an
-- no debconf information
Reply to: