Description
Compiler Explorer: https://godbolt.org/z/TG4hMMPv3
template<int... x>
int y = x...[0];
int main() {
y<0>;
}
<source>:2:5: error: cannot initialize a variable of type 'int' with an lvalue of type '<dependent type>'
2 | int y = x...[0];
| ^ ~~~~~~~
<source>:5:2: warning: expression result unused [-Wunused-value]
5 | y<0>;
| ^~~~
1 warning and 1 error generated.
Compiler returned: 1