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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs