[LLVMbugs] [Bug 20082] New: Feature request: warn on `a < b < c`
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 19 09:42:23 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20082
Bug ID: 20082
Summary: Feature request: warn on `a < b < c`
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: mimomorin at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
For C primers, it would be useful to warn on `a < b < c`:
int main(int argc, char* argv[])
{
int a = 2;
int b = 3;
int c = 4;
if (a < b < c) {
/* ... */
}
}
I think it makes sense to warn on these codes
as the compiler emits warnings on codes like `if (a = b)`.
P.S. gcc emits warnings on such codes.
--
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/20140619/f4d597a2/attachment.html>
More information about the llvm-bugs
mailing list