This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/1713: some programs using `bool' from stdbool.h no longer compile
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/1713: some programs using `bool' from stdbool.h no longer compile
- From: jim at meyering dot net
- Date: Sat, 20 Jan 2001 11:23:27 +0100
- Cc: Paul Eggert <eggert at twinsun dot com>
>Number: 1713
>Category: c
>Synopsis: some programs using `bool' from stdbool.h no longer compile
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Sat Jan 20 02:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Jim Meyering
>Release: 2.97 20010119 (experimental)
>Organization:
>Environment:
System: Linux ixi.eng.ascend.com 2.2.17 #3 SMP Wed Sep 20 19:24:00 CEST 2000 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /mirror/d/egcs/configure --disable-nls --prefix=/p/p/gcc-2001-01-20.07h44
>Description:
gcc no longer compiles the following file.
It stopped working some time between Nov 11 and Nov 22, 2000
and still fails when using gcc built from the latest sources.
[ FYI, this showed up when trying to build tar-1.13.19
ftp://alpha.gnu.org/gnu/tar/tar-1.13.19.tar.gz ]
$ cat k.c
# include <stdbool.h>
struct foo { int x; bool bar; };
typedef struct foo Foo;
static const Foo f = { 0, false };
$ cat k.i
# 1 "/tmp/k.c"
# 1 "/p/p/gcc-2000-11-22.09h28/lib/gcc-lib/i686-pc-linux-gnu/2.97/include/stdbool.h" 1 3
# 2 "/tmp/k.c" 2
struct foo { int x; _Bool bar; };
typedef struct foo Foo;
static const Foo f = { 0, 0 };
>How-To-Repeat:
$ /p/p/gcc-2000-11-11.03h49/bin/gcc -c /tmp/k.c
$ /p/p/gcc-2000-11-22.09h28/bin/gcc -c /tmp/k.c
/tmp/k.c:4: invalid initializer
/tmp/k.c:4: (near initialization for `f.bar')
[Exit 1]
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: