http://llvm.org/bugs/show_bug.cgi?id=16467
Bug ID: 16467
Summary: no warning on undefined behaviour
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
liska ~$ cat hello.c
int main(int argc, char **argv)
{
int i = 7;
return i = ++ i;
}
liska ~$ gcc49 -Wall hello.c
hello.c: In function 'main':
hello.c:5:12: warning: operation on 'i' may be undefined [-Wsequence-point]
return i = ++ i;
^
liska ~$ clang-3.4 -Wall hello.c
*silence*
--
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