[cfe-dev] bug in wchar_t initializing

Paolo Bolzoni bolzoni at cs.unipr.it
Fri Dec 19 04:26:12 PST 2008


wc.c contents:
#include <wchar.h>
int main(){
   wchar_t wb[] = L"Hi\300";
}

$ clang wc.c 
clang:4:19: error: initialization with '{...}' expected for array
   wchar_t wb[] = L"Hi\300";
                  ^~~~~~~~~
1 diagnostic generated.
$

I am pretty sure it should be possible initialise a wchar_t[] this way.

pb



More information about the cfe-dev mailing list