<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/106180>106180</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] Crash on initialization
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
cardigan1008
</td>
</tr>
</table>
<pre>
I compile this code with a crash:
```c
a = {{}, 1};
```
The crash is: clang: /root/llvm-project/clang/include/clang/AST/Expr.h:5091: clang::Expr* clang::InitListExpr::getInit(unsigned int): Assertion `Init < getNumInits() && "Initializer access out of range!"' failed.
The details can be found here: https://godbolt.org/z/Yc9nvE5de
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkUs1u2zwQfJrVZfEZ1JL6O-jgxBEQ4EMvzaVHiqQlFjRpkFTa5ukLygmaugAhaWdXw8XMyJTs4o0ZoXmA5lTJLa8hjkpGbRfpa8b6ag761_iMKlyu1hnMq02ogjb4w-YVJaoo0wr8COwE7OPZsttRt1oi8BNC97CfE9Aj1uXNH-7mP5O8rOZGjjYBP6Jy0i_lA2iKIWSgybnXy3_XGL4bVcrbBE3WK7dp8wk5fn0Bmp5-XuOh7Nqwof5MCfxYekB_Qc_e5v9tyntrRxaTCwjUb35XTqP1GWgoZMeUTMw2eISWlTEE_oiLyV-2SykTUA80IFAL1CIQFdRKZ99MRKmUSQnDljGcMUq_GKAaiIA6PEvrjD7cq6NNltYlVNLjbPAcNq9xNdGUddacr0U3oAloWoKeg8uHEIscb0DTNzX416dGm0qPXA98kJUZ645Ex0XTiWodGTVnRk3LdFf3NROib2rDGeNNO0spZGVHYiRYTx0TTVuLg-AzN6KmrlXE2oaDYOYirTsUo8rdlU1pM2PN2rpnlZOzcWkPH9G7VVRyGMfd2XlbEgjmbMrpD0W22e2Jvf3RnPBxT0nwaD8ElcWHaotuvJPB5nWbDypc3tPzb4j2DRPQ9L7k60i_AwAA__9YzfKC">