http://llvm.org/bugs/show_bug.cgi?id=3815
Summary: spurious warning on constant conversion
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
--
ddun...@frank:tmp$ cat t.c
int f0(int i) {
switch (i) {
default: return 0;
case 0x958458f6: return 1;
}
}
ddun...@frank:tmp$ clang t.c
t.c:4:8: warning: overflow converting case value to switch condition type
(2508478710 to -1786488586)
case 0x958458f6: return 1;
^
1 diagnostic generated.
--
--
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