<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62955>62955</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang (C++, possibly all standards): Crash with huge array that's zero initialized with `{0}` expression
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
octurion
</td>
</tr>
</table>
<pre>
Minimal crashing example:
```
static const char TEST[1llu << 32] = {0};
```
(Godbolt link: https://godbolt.org/z/Evbxf385r)
Stacktrace generated: [stacktrace.txt](https://github.com/llvm/llvm-project/files/11578434/stacktrace.txt)
I can confirm that the bug in question is reproducible with all Clang versions from 12.0.0 till 16.0.0, as well as trunk. This also appears to be independent of the C++ standard that is passed as a command line argument.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk82OrDYQhZ-m2JSCcLnpphcsprsvURZZ3XkBY1eDM8Ymtpm_p4_MzOTnKpsrIRtU6Lj8nVMqJTt55h7aC7S3Sm15DrEPOm_RBl-Nwbz1v1tvF-VQR5Vm6yfkV7WsjkE-QHOD5ms9Np_P_pmyylajDj5l1LOK-Pjt-yO0F-HchiCvIK8oCdobgrwhnC4NnG4gL_-r9rlS92swY3AZnfVPIB9wznlNpRMagIbpo1qHOAEN70DDt-fx9S67NgKd_y31PSv9lKPSjBN7jiqzKXrQXtLfpTq_ZmhvQN0Px9g8b2OtwwI0OPf8tf2yxvAH6ww03K3jBDQI0Z66gzwADT_o_ref31ArX2jdbVwwzypjnhnHbULr8c-NU7bBo00YeY3BbNqOjvHF5hmVc3h1yk_4zDHZ4BPeY1hQUN3UDWbrHIpjeQe6okr4ws6VPcfNP9X4ONuEyqWAal1ZxYQ54MhoveGVvWGfMdz3fq5AF6ALpqy8UdF8dGoTriolNkVUoQ7LorwpHjGqOG0L-1xXppfmLM-q4l4cu1YQibOo5p66uxCajyQbIzrWumGlu5MUraHDKKiyPTUkm5aO4kTnVtRiPI186EYjRnngo4FDw4uyri4mFPMrm9LG_ZHObVs5NbJLe8SJPL_gXgQq2ativxs3blOCQ-NsyukflWyz417vaIG6z8sXiGtIyY7ubWf_BSMVT-UDXsugfFgzb1NBENXbTgrolPCdY0DrbbbK2Xc2H3-WqH_OwLFBfl0jp-JltUXX_3T89iuW_O0I_goAAP__tw87Og">