Issue 86686
Summary `std::variant<std::string>{}.index()` is not an integral constant _expression_
Labels new issue
Assignees
Reporter hewillk
    Clang rejects the following. 
Not sure if it's just because a certain language feature isn't implemented yet, correct me if I'm missing something.

```cpp
#include <variant>
#include <string>

static_assert(std::variant<std::string>{}.index() == 0);
```
https://godbolt.org/z/8cTnafsMd
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to