| Issue |
113936
|
| Summary |
C++ compile-time array bounds unsuccessfully inferred from template expansions
|
| Labels |
|
| Assignees |
|
| Reporter |
mld2443
|
https://compiler-explorer.com/z/33Yhbxdoc
```cpp
template <int... VALUES>
struct C {
static constexpr int VALUEARRAY[] = {VALUES...};
};
static_assert(C<0,1,2,3,4>::VALUEARRAY[4] == 4);
```
clang needs the hint of `sizeof...(VALUES)` to build correctly
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs