[cfe-commits] [patch] _Bool in yvals.h

Michael Spencer bigcheesegs at gmail.com
Sun Oct 10 00:59:33 PDT 2010


> On May 20, 2010, at 10:25 AM, Steven Watanabe wrote:
>
>> AMDG
>>
>> The attached patch deals with the fact the yvals.h
>> in the standard library that ships with msvc contains
>> typedef bool _Bool;
>> However, i'd really prefer to disable the _Bool keyword
>> in Microsoft compatibility mode.  Is there a good
>> way to do this?


On Thu, May 20, 2010 at 3:51 PM, Douglas Gregor <dgregor at apple.com> wrote:
> [snip ...]
> It would be much better just to make sure that _Bool isn't a keyword in -fms-extensions mode.
>
>        - Doug

I have filed a bug (http://llvm.org/bugs/show_bug.cgi?id=8349) on this
issue because it is currently breaking a lot of the test-suite on
Windows when compiled with clang.

I feel very strongly that asking for extensions does not mean that I
want to break perfectly valid C99 code. Extensions should _never_
change the meaning of an otherwise standard compliant program. When I
give clang -fms-extensions I am asking for extensions, not MSVC
emulation.

- Michael Spencer




More information about the cfe-commits mailing list