[LLVMbugs] [Bug 13027] New: Analyzer created impossible default switch

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 5 03:39:52 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13027

             Bug #: 13027
           Summary: Analyzer created impossible  default switch
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: zdenek.kabelac at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8684
  --> http://llvm.org/bugs/attachment.cgi?id=8684
switch with default

With code like this:

switch (a & 0x3) {
case 0:  
case 1:
case 2:
case 3:
}

it seems analyzer still insist on taking 'default:' path.
(code is from current  drm  git tree)

-- 
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