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

            Bug ID: 22059
           Summary: false negative of -Wshift-count-negative
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

-Wshift-count-negative does not warn on the following test case

$: cat s1.c
int f(int a) {
  const int i = -1;
  return a << i;
}
$: clang-trunk -Wshift-count-negative -c s1.c 
$:

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