[llvm-bugs] [Bug 40921] New: Improve -Wtautological-constant-in-range-compare
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Mar 1 12:41:09 PST 2019
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: unassignedclangbugs at nondot.org
Reporter: david.bolvansky at gmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190301/a0d85731/attachment.html>
More information about the llvm-bugs
mailing list