[LLVMbugs] [Bug 3097] New: clang refuses wchar_t foo[]

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Nov 18 13:21:01 PST 2008


           Summary: clang refuses wchar_t foo[]
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu

clang refuses wchar_t foo[] which is legal by:

ISO/IEC 9899:1999 (E),
6.7.8 Initialization clause 15,

An array with element type compatible with wchar_t may be initialized by
a wide string literal, optionally enclosed in braces. Successive wide
characters of the wide string literal (including the terminating null
wide character if there is room or if the array is of unknown size)
initialize the elements of the array.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list