<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/146270>146270</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
CodeGen ICE on Compiler Explorer
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
katzdm
</td>
</tr>
</table>
<pre>
The following program ICE's on Compiler Explorer:
```cpp
#include <array>
#include <string_view>
consteval std::array<std::string_view, 200000> fn() { return {}; }
int main() { auto v = fn(); }
```
https://godbolt.org/z/51zbz1G66
When the size of the array is reduced, no crash occurs. Note, I'm unable to reproduce the issue on my local build (Mac M3).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsUs1u2zwQfBrqsohBLy3JOujgOHaQQ77TB_RY8GcjsaVIgaScxk9fUDGSoK1AgCvtzmBGOzIlO3iintX3rH6o5JLHEPufMl_NVKlg3vr_R4KX4Fx4tX6AOYYhygmejieGbYLg4Rim2TqKcPo1uxApMnFgfD0Nfz96nssrCuu1WwwBE0cZo3xj4vRXI-Vo_fD9Yun11uYHHXzKdJEOUjaFXxxu-OPHh684PALy8jBxghfPcM-wA9beA0TKS_SlZu0DE_dQLn6wPsMk7ddRueQAF2Di4YPic_7DG-OHMec5FRF4ZngeglHB5U2IA8PzleG53l7VdfvYNO9mvo3kIY8EyV4Jwstar3bAJohkFk2mWPABdJRphKD1EtMG_guZSuOJYTvB4qVyBDlApDmGAlupbEoLlc1Mb-CClg7UYp0BhvtnqeFZMOw2lemF6UQnK-q3bb1F3rVcVGPfyL1W-2bfaqG3KOtaYcOVFEZqo4xWle2RY80b7LY136PYtB3JRu47YzSqrt6xHadJWrdx7jKV31CtivrtrsGWV04qcmlNHKKn13e9DLEEMPYFdKeWIbEddzbl9EmTbXbUH4OhR_Ilgv-MX7VE1_-xEpvHRW10mBieC93tuptj-EE6MzyvIhLD803lpcffAQAA__-xPfaA">