[LLVMbugs] [Bug 22059] New: false negative of -Wshift-count-negative

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 30 00:13:03 PST 2014


            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: unassignedclangbugs at nondot.org
          Reporter: chengniansun at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141230/bf3375be/attachment.html>

More information about the llvm-bugs mailing list