https://llvm.org/bugs/show_bug.cgi?id=23895
Richard Smith <richard-l...@metafoo.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |richard-l...@metafoo.co.uk Resolution|--- |FIXED --- Comment #1 from Richard Smith <richard-l...@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs