This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc's <stdbool.h> is broken


On Mon, 5 Feb 2001, Bruno Haible wrote:

> ISO C 99 section 7.16 specifies that the macros 'false' and 'true'
> shall be usable in preprocessor expressions. But gcc 2.95.2/2.95.3
> gets this wrong.

Don't use the 2.95.2/2.95.3 <stdbool.h> - 2.95.2 predates the publication
of C99, and its <stdbool.h> was based on an old draft (although it doesn't
conform to the oldest draft I have around - from before the _Bool builtin
type was added).  The GCC 3.0 release notes clearly note (or will when
they're written) that the conforming _Bool and <stdbool.h> in 3.0 is not
binary compatible with the 2.95.2 boolean type (though it is compatible
with C++ bool in the new ABI).

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]