Issue 125955
Summary tautological warnings for is_constant_evaluated not emitted in c++23/26 modes
Labels clang:frontend, constexpr
Assignees
Reporter cor3ntin
    for

```cpp

int main() {
   if constexpr(std::is_constant_evaluated()) { }
}
```
We usually warn 
> 'std::is_constant_evaluated' will always evaluate to 'true' in a manifestly constant-evaluated _expression_ [-Wconstant-evaluated]

However this warning is gone in c++23 mode

https://godbolt.org/z/KKPKvveGM
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to