[LLVMbugs] [Bug 3815] New: spurious warning on constant conversion

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Mar 15 04:51:47 PDT 2009


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: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


--
ddunbar at frank:tmp$ cat t.c
int f0(int i) {
  switch (i) {
  default: return 0;
  case 0x958458f6: return 1;
  }
}
ddunbar at 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.



More information about the llvm-bugs mailing list