-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Code Generation Tools
-
CODEGEN-14346
-
-
-
default
-
Use unsigned short instead.
% type file.c #include <uchar.h> #include <stdint.h> const char16_t fails[] = u"utf-16 string literal"; % cl2000 --c11 file.c "file.c", line 3: error: a value of type "unsigned short [22]" cannot be used to initialize an entity of type "const char16_t []" 1 error detected in the compilation of "file.c". >> Compilation failure
Change char16_t to unsigned short, and it works.