gcc's <stdbool.h> is broken
Neil Booth
neil@daikokuya.demon.co.uk
Mon Feb 5 12:46:00 GMT 2001
Zack Weinberg wrote:-
> There is a real bug in this area, though: in C++, after including
> stdbool.h, you still can't use 'true' and 'false' in #if. They are
> defined to themselves, and the preprocessor doesn't know the
> keywords.
Hi Zack,
I'm a little confused. What exactly does the C++ standard say
w.r.t. true and false, and is your patch different?
Neil.
More information about the Gcc-bugs
mailing list