[Issue 23714] compilable/testcstuff1.c:213:1: error: static assertion failed: u'ab' == 0x610062

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 3 07:09:45 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23714

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
C11 6.4.4.4-11 says:

"a wide character constant prefixed by the letter u or U has type char16_t or
char32_t, respectively, unsigned integer types defined in the
<uchar.h> header."

clang gives an error for u'ab', gcc gives a warning and produces the value 0x62
for it. I suggest the best solution for ImportC is to produce the value 0x62,
not 0x610062.

--


More information about the Digitalmars-d-bugs mailing list