http://llvm.org/bugs/show_bug.cgi?id=7977
Summary: clang complains about two-byte wide char L'Â'
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=5406)
--> (http://llvm.org/bugs/attachment.cgi?id=5406)
testcase
The attached testcase doesn't seem to be parsed correctly by clang:
~$ g++ widechar.cc -o widechar
~$ ./widechar
194
~$ llvm/Debug+Asserts/bin/clang++ widechar.cc -o widechar
widechar.cc:4:15: warning: extraneous characters in wide character constant
ignored
wchar_t c = L'Â';
^
1 warning generated.
~$ ./widechar
-126
The two-byte character literal is 0xc3 0x82.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs