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

           Summary: Dead branch warning elimination doesn't trigger for
                    global initialisation
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Consider the following input:

int foo = 1 > 2 ? 1 << -1 : 0;

This results in a warning about the negative shift, even if that branch of the
ternary operator is known to be unused. This does work inside a function e.g.
as statement.

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

Reply via email to