<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/120469>120469</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[TySan] Clang compilation hangs on large arrays
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
artem
</td>
</tr>
</table>
<pre>
C++ reproducer:
```c++
#include <string>
#include <array>
struct foo {
std::string name;
};
std::array<foo, 10000> options;
```
Clang is invoked with:
```
clang++-20 test.cpp -c -o test.o -O1 -fsanitize=type
```
Clang version: 20.0.0 (++20241218112756+95eb49a09055-1~exp1~20241218112924.2537)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0UsnOmzAQfprhYoHsMQ7xgUOWP9ce2hcwZkLcEhvZJm16-J-9ItD2l6pKI7HMt8xmUnKDJ2pBHUGdCzPnW4itiZnuRRf6Z3sCPAIeWaQphn62FEEegL9ix9ewK2b5hdJ5O849MZCnlKPzA8i3fzImRvPcEvyQcpxtZtcQGDSLDEu5X2zkYZVg3twJ5MuhOW8vC29DbXKnawiAJyY45xzkGwtTdsGnjfC73JV8Go0fmEvM-Uf4Rj377vJt6-0D0i6wtb8SOcuUcmWniZWWlWH9DKz8JFh5Tca77H4SyHN-TvQ_ywfF5IIHeWDIK15xBrhfHZBjLVDshcBG7QCPWlFXa8M1V6oU7_RjEu8fQBrrCpVsAHXRt7LXUpuCWtHIWtUahSpubb3nSIja9tp2JPtuJ_nV7rTkTW-FoMK1fxS1kFJVHVcNpz2Sqq9coISa0924sRrHx70KcShcSjO1Anm908VoOhrT64IQt3HhckyxXQhlNw8Jaj66lNNfiezy-Dq7L8_PxoM6s3U6NtwnN5plb-xm_JBY8Gw0cSD22nIq5ji2t5yntCwLL4CXweXb3FU23AEvi8P2KKcYvpLNgJdXxQnwshX9aPFXAAAA__8gVt2X">