https://bugs.llvm.org/show_bug.cgi?id=52225
Bug ID: 52225
Summary: Incorrect and missing tautological warnings with
consteval if
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++2b
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
The following consteval if statements produce tautological warnings that don't
seem correct in all cases.
```
constexpr void f() {
if consteval {
if consteval { // Correct diagnostic
}
if !consteval { // Incorrect diagnostic
}
}
if !consteval {
if consteval { // Missing diagnostic
}
if !consteval { // Missing diagnostic
}
}
}
```
https://godbolt.org/z/6KjW4v5dn
--
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