<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102169>102169</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang crashes on nested lambdas with parameter packs
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Taw3e8
</td>
</tr>
</table>
<pre>
This code crashes: https://godbolt.org/z/zdGvoE6h4
```cpp
template <std::size_t N, std::size_t M>
concept C = requires {
[]<std::size_t... Is>(std::index_sequence<Is...>)
requires requires {
[]<std::size_t... Js>(std::index_sequence<Js...>)
requires requires { true; }
{}(std::make_index_sequence<M>{});
}
{}(std::make_index_sequence<N>{});
};
```
But without the nested lambda it's fine: https://godbolt.org/z/P8svEfjYd
Some issues that seem related: https://github.com/llvm/llvm-project/issues/86361, https://github.com/llvm/llvm-project/issues/93256, https://github.com/llvm/llvm-project/issues/85667
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyklE1vnDwQxz-NuYweBDbm5cAhu5t9lEiNKjWXniKDJ4sTwMQeNm0-fQXsJmmyaqMUAbbH9u8_Ho9GeW92PWLJ5IrJTaBGaqwrr9WjwDyorP5ZXjfGQ201Qu2Ub9AzcQYN0TB1GN8yvt1ZXdmWQut2jG-fpk__v7fnaZOwaMOiM5ZGy1sPw2Ih7IZWEQITa096Qokzb57whuCK8TW8NX5h4nzZWtu-xoFgDUxswOHDaBx6YNlqmYflLO_BYRjChZ84PH-eMr3GHzceH0bsa2RifeHDMJwXFQcewIvKCbnD8yfVy7-qXr5TPSkJ5EZkYgUs27yRz1aT7ZVGp-7x5p3QHMfD2oKJ55i95n2UdXWSNQ2f-8eLX4arkeDRUGNHAmoQevSEGlrVVVqBIcYzD7emx4_k2Nfc789v777rg9T8_2Y7BOP9iB6oUQQesQOHU67pE1RDzViFte0Y37bt_tj8Nzh7hzUxvl1gjG_zVKTxlJqfRxSCy_TfELlM02w5a6BLoQtRqADLOOO8kIWMZNCUMZe3EjVmyLOsqOMKk6ooBOqoitNaZ4EpecSTKI_SWMo4kSEWKUqV5LmI40QkOUsi7JRpw8mNKebB7EAZRzxOi6BVFbb-WDRcOTtbjTvPkqg1nvzLPjLUYrluVb87FhCw_e837-ekgEE51SGhg0HV9z4YXVt-PlAHV_cl_xUAAP__Q0p5QA">