<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/121242>121242</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Pack indexing expression is not being instantiated
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Eczbek
      </td>
    </tr>
</table>

<pre>
    Compiler Explorer: https://godbolt.org/z/TG4hMMPv3

```cpp
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
```

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8U01v2zAM_TX0hYghU3ZsH3xwvnYq0MOAneWYTbQqsiHJadLDfvsgu-vaDhghQAJJ8_E9k8p7fbLMDRQbKHaJmsJ5cM3--Nrxc9IN_b3ZDpdRG3a4v41mcOxAtngOYfQgW6AD0OE09N1gQjq4E9DhFejw_Vt-fnh4vEoQbTxrsZzjOIJoA19GowKD3Gob0jTFG8g9iFbbgHcEucNbmqZQbAQUO5CbpUqMXpS2QBVQjVAu_voOcitigSWx3H1E_PqWWz9M7shzfksg2yISYueGmdlRWTsE1FYHrYx-ZVR4VU6rzjAOTxjuIyNQqW0AKvFFhzMqi-aqzPQpAeS255FtzzbMzohIJYgWEZEQyi3-hy_OFpPmu9gj4q_F_qVRvFHBF-WstqeZ0W107L0eLDr2kwk42clzj1BsVj-W92ruOmIugMU7YLTPun4KQbFfGsn-QKKyPWaLjnhiy04F7lMQ7fsAOQ6Ts9zH7rIv_yXpG9nXslYJN1kpC1lkJERybuquZK6rrKrWvFYdU18_FRUzE8mukn2iGxKUZ0SVICGESGuV53W27oq6yp_6XkAu-KK0SY25XuKMJtr7iZuMMsopMapj4-cFILL8gnMUiOI-uCZ-tOqmk4dcGO2D_1sm6GC4eVTHZ9S251tU4YPq2mOcpI6jX1sflA06ipJMzjRfNkiH89Slx-ECdIgAb9dqdMNPPgagw9yWBzq89X1t6HcAAAD__19sG8M">