[llvm-bugs] [Bug 23895] cannot initialize arrays of type char16_t
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 4 11:24:19 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=23895
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |FIXED
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Recent Clang behaves as suggested on all parts of this testcase, except that we
still reject
static const wchar_t a[]=u"foo";
C11 6.7.9/15 does not say what comment#0 claims (perhaps an older draft was
used?). In fact, it says: "An array with element type compatible with a
qualified or unqualified version of wchar_t, char16_t, or char32_t may be
initialized by a wide string literal with the corresponding encoding prefix (L,
u, or U, respectively), optionally enclosed in braces."
So Clang is correct to disallow that, and is correctly handling all the cases
here.
--
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/20161004/c8157cef/attachment-0001.html>
More information about the llvm-bugs
mailing list