<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/117511>117511</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang segfaults with 1,000,000 if statements
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lenanya
</td>
</tr>
</table>
<pre>
While doing a 1,000,000 if statement function as a joke, i discovered that clang segfaults during compilation.
Preprocessed Source Code and Build file as the clang said to provide:
[clang_bug_report.zip](https://github.com/user-attachments/files/17895911/clang_bug_report.zip)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kj-P2zAMxT-NvBBnSLIdx4OGJoHnAh06HiiJtnVVLEN_Ulw_fWHnigJFcQu5UD8-vUdMyc0rkWLdhXW3CkteQlSeVlzfsdLBvqvvi_MENrh1BgTB5JVz_qzgJkgZM91pzTCV1WQXVsAECG_hBzF5BQfWJRMeFMlCXjCD8bjOkGiesPicwJa4s024b87jTqgZvzH-5Vm_RtpiMJQSWfgWSjQE12AJcLVwKc5bmHaFmCAv9IeOzkIOsMXwcJZY8wFj3eUYeNVlfo20hZjrX25j3Y3J85LzlvZROTI5zi4vRdcm3JkcS6L4gjmjWfa_JibHfeneRX8eukEIJsf_ouXwXF1Z1dihGbAiJfpGtkMvG14tqpmm8-l0Jm1Qa2E5noRosdMn3TWtELxySnLZCiE7LkTT8RpNM-Bp0sjb3tqpZy2nOzpfe_-41yHOlUupkBKi74SoPGry6chYykMjk3KPO6r9wYsuc2It9y7l9BeRXfak_g3rp8vLJ0eQqhK9-sTIHf_RXrYY3shkJsdD7mHmU_FDyd8BAAD__9Xt19U">