https://bugs.llvm.org/show_bug.cgi?id=39779
Bug ID: 39779
Summary: -Wunsequenced warning on OR operator
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
As per http://eel.is/c++draft/expr.log.or#2 this should be well defined, but
clang issues a warning.
https://godbolt.org/z/pcut3J
void foo(int idx)
{
((idx++, false) || (idx++, false));
}
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs