[LLVMbugs] [Bug 8349] New: _Bool keyword is not defined in -fms-extensions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Oct 10 00:45:30 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8349

           Summary: _Bool keyword is not defined in -fms-extensions
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bigcheesegs at gmail.com
                CC: llvmbugs at cs.uiuc.edu


The _Bool keyword isn't defined when in -fms-extensions mode. I know the reason
is because one of the MS headers typedefs it, but this makes C99 code not work
on Windows.

I think that _Bool should always be a keyword, but allow typedefing it as a
ms-extension. The typedef _must_ be:

typedef bool _Bool;

Anything else is an error.

My reasoning for this is that extensions should be just that, extensions. No
standard features should be removed when extensions are enabled.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list