http://llvm.org/bugs/show_bug.cgi?id=15099
Bug #: 15099
Summary: warning vs error for character literal overflow
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
This code generates a warning for g++ and an error for clang++
rkotler@ubuntu-rkotler:~/testmips16/hf$ ~/llvm_3_2/install/bin/clang++ tl1.cpp
-S
tl1.cpp:2:7: error: character too large for enclosing character literal type
if ('\u4444' == 0) {
^
1 error generated.
rkotler@ubuntu-rkotler:~/testmips16/hf$ g++ -S tl1.cpp
tl1.cpp:2:7: warning: multi-character character constant
rkotler@ubuntu-rkotler:~/testmips16/hf$
--
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