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

            Bug ID: 15507
           Summary: warn about signed, unsigned arithmetic
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

It would be nice to have a warning about signed vs. unsigned arithmetic, e.g.
the following:

int s = -1;
unsigned int u = 2;
signed d = u / s;
std::cout << d << std::endl; // prints '0', not '-2' as some might expect.

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