<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59184>59184</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Segfault In Large Project
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
geometrian
</td>
</tr>
</table>
<pre>
I'm getting a compiler segfault with Clang 15.0.1 on Windows (built-in to Visual Studio) in a large C++ project.
I have been unable to efficiently isolate the bug; simplifying the code too much, even in apparently unrelated ways, can make the bug disappear. Sometimes compiling again without changing anything makes the compiler work (or fail)!
Attached is the preprocessed file and run script outputted by clang (*thank you very much for making collecting bug data easy!*). I slightly simplified and anonymized the preprocessed file manually, but anyway I confirmed the bug still reproduces. I am also including the complete output of a failure run (in case you have trouble reproducing the bug on your machine).
> [clang_crash.zip](https://github.com/llvm/llvm-project/files/10081024/clang_crash.zip)
I can also reproduce this bug in the Intel Compiler, which now uses LLVM as a frontend. MSVC itself has an (obviously unrelated) bug elsewhere. Alas, that makes three compilers that cannot compile my code :C
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVlE2L2zAQhn-NfRlqbDnxJgcfsmkLgS0UFrbHIstjW11ZMvpIcH99R0qy3ZZeCiax9THzzjOv1Jl-bU8Ze5hhRO-lHoGDMPMiFVpwOA48KA8X6Sc4Kk7T1bYoiwqMhm9S9-biIGO7LkjlP0gN3sCLdIErePahlyZje6BhDorbEeGYsUd6YLHmBwpfZOXHrDxcf08w8TNCh6ghaN4pjNFwGKSQqL1aQTqjuKfhiZaFMasfwcl5UXJYo_A4LEwftxmYg5gydgQ8U7ioYFm4vYYJ2mKM08OFry4uElzDzF_fIkMvHW1Abgt4NjN6OaO7YUmIRk4hIxQTPIiJuKRhvfopvsRY7qbnhvJi7GskZSwMXCrikrHqffkH77mYSJS87lwsEiWBztHYQDEofA82aHDCysUDpV6Cj2V0K4jUG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