This is the mail archive of the gcc-patches@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


>>>>> "Zack" == Zack Weinberg <zackw@Stanford.EDU> writes:

>> > However, with these definitions, true and false do not work in #if
>> > expressions in C++ even after including stdbool.h.  It is desirable
>> > that they do work, for maximum compatibility between C99 and C++, and
>> > there's no reason why they shouldn't be known to the C++ preprocessor
>> > at all times.
>> 
>> OK.  Is it known that the C++ people intend them to work in CPP
>> expressions in the future?  I'm just a bit wary of yet another
>> extension, particularly in this area, since they are quite different
>> and ...

> I don't know, but hopefully the C++ folks will.

The C++ committee has so far mostly avoided discussion of incorporating C99
extensions.  Your approach makes sense to me.

Jason

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