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

    <tr>
        <th>Summary</th>
        <td>
            ICE in parameter pack expansion with concepts
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    This code causes an ICE in trunk but not in other release versions.
```cpp
#include <utility>
template <typename, std::size_t> concept prefix = true;

template <auto N>
consteval auto func() {
    return [&]<std::size_t... Is>(std::index_sequence<Is...>) {
 return [](prefix<Is> auto..., auto) {
        } (1, 2);
    } (std::make_index_sequence<N>());
}

int main()
{
 func<2>();
    return 0;
}
```
https://godbolt.org/z/Wh7xfd3hE
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU0tvtDgQ_DXNpRVkbGYYDhySeUi55LTSHiNjmsEbsFk_spP8-pWZR0aZDyGB3dVV5ZJbeq-PhqiB1QusdpmMYbCuedOTsx2rWZG1tvtq_hq0R2U7QiWjJ4_S4Ot2j9pgcNF8YBsDGhvShg0DOXQ0kvSEn-S8tsbnwHbAnmHNzq-a58sOF9qoMXaEILYx6FGHLxD7czXQNI8yLLXwNZOREwHfog8diGcQz15_03sAsUdljaI54Oyo1ycEsUveCMTLReiBUMZg8e2mpazxgT7liEuhj0YB3wCvEaoLByKioxCdwRQYX8NqB2L7y02e5_jqEy_f3EradHR69_RvJKMIxPbV53m-gO4F7thXO-Cb82kWeDpkcpba-Hb5fTCXHqh2CHxTJBAHXt8SuCvebE3yg94fvL2dzafmu36odvdRahNwktpcgBfIVWuJT2z5D5N4DJH9gft6Q87LIYTZJ6v8APxwtF1rx5BbdwR--AZ--HuoTn0nhn3WNaKrRS0zaop1JeqSlWuRDQ1R2belWkmm-lK0tSp4WWxKpspN21NbZLrhjAtWFBWreFWKfC1531Z1K9uuY4L1UDKapB7zcfycknamvY_UrBmrq2yULY3-OkCuSaCnNh49lGzUPviftqDDSM1lcGbp5ESBHM5SfSCdZmnSqOB_OgzX2-yz6MbmVwg6DLHNlZ2AHxL35fM0O_sPqQD8sPjzwA-Lxf8DAAD__1iFJJ8">