[llvm-bugs] [Bug 37904] New: u'ab' and U'ab' considered errors

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 22 07:33:41 PDT 2018


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

            Bug ID: 37904
           Summary: u'ab' and U'ab' considered errors
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tydeman at tybor.com
                CC: llvm-bugs at lists.llvm.org

char16_t c1 = u'ab';
char32_t c2 = U'cd';

are considered errors and get:
 error: Unicode character literals may not contain multiple characters

C11/C17 6.4.4.4#11 has: The value of a wide character constant containing
more than one multibyte character or a single multibyte character that maps to
multiple
members of the extended execution character set, or containing a multibyte
character or
escape sequence not represented in the extended execution character set, is
implementation-deļ¬ned.

-- 
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/20180622/ebce77c3/attachment.html>


More information about the llvm-bugs mailing list