https://bugs.llvm.org/show_bug.cgi?id=40711
Bug ID: 40711
Summary: no warning expected
-Wtautological-unsigned-zero-compare
Product: clang
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++'17
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
The below code compiled with '-std=c++17 -Weverything -Wno-c++98-compat' issues
a -Wtautological-unsigned-zero-compare. I do not expect any warnings.
int main()
{
using Size_t = unsigned long;
Size_t pos{1};
if constexpr (sizeof(Size_t) > 0) { return 0; }
else { return 0 <= pos ? 0 : 1; }
}
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs