[llvm-bugs] [Bug 42098] New: __CHAR16_TYPE__ and __CHAR32_TYPE__ are defined on MacOS but they don't actually work

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 31 18:43:01 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42098

            Bug ID: 42098
           Summary: __CHAR16_TYPE__ and __CHAR32_TYPE__ are defined on
                    MacOS but they don't actually work
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Bumblebritches57 at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

MacOS's SDK does not include the uchar.h header, and since these macros are
defined by the compiler the macro check doesn't work, breaking my code.

I filed a bug report with Apple about it, bug #51322492 but they don't seem to
care.

Example code to get the bug to appear:

#ifdef  __CHAR32_TYPE__
typedef   char32_t       UTF32;
#else
typedef   uint_least32_t UTF32;
#endif /* __CHAR32_TYPE__ */

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190601/8f338357/attachment.html>


More information about the llvm-bugs mailing list