[llvm-bugs] [Bug 33700] New: clang++ can't detect obvious coding error in bitmask ?

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 6 09:26:47 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33700

            Bug ID: 33700
           Summary: clang++ can't detect obvious coding error in bitmask ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org

Current clang++ seems to have nothing to say about
this broken C++ code:

extern void g(int n);

void f( int n)
{
        if ((n & 0x30) == 1)
                g( n);
}

-- 
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/20170706/c3418f52/attachment.html>


More information about the llvm-bugs mailing list