https://bugs.llvm.org/show_bug.cgi?id=40921
Bug ID: 40921
Summary: Improve -Wtautological-constant-in-range-compare
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
int test (int x)
{
if ((long long)x <= 0x123456789ABCLL) // GCC warns with -Wtype-limits
return 1;
else
return 0;
}
Clang does not warn with -Wtautological-constant-in-range-compare nor
-Weverything (root issue).
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs