<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/129241>129241</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang unexpectedly crashing
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
shvrma
</td>
</tr>
</table>
<pre>
The project attempted to compile: [https://sources.shvrma.click/shvrma/lualike](url). Version of Clang: the latest one from the Arch Linux repo, *19.1.7-1*. It seems to be a frontend bug as determined by instructions in the Submitting Bug Report guide. Clang complains about inability to produce code for *std::__do_visit* for variant visitation. Latest g++ refuses to compile the code, complaining about an invalid template parameter, which in turn defines some method with such. Latest MSVC compiles the given code and it seems to run.
As asked, additional files attached, but the problem seems reproducible at least across my PC's: [tmp.zip](https://github.com/user-attachments/files/19027959/tmp.zip).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8lEGPpDYQhX-N-1Ia1Jju7ebAgZlVS5E2UpSN9joydgGVMTZylXu38-sjw0yyueSEsFXvffWowjDTFBA7dX5W588Hk2WOqeP5nhZzGKJ7dH_MCGuKf6IVMCK4rIIOJIKNy0oeVdODOj_PIiurplf6pvSNY04WudqFKuvJvpXj7VXpm8_G0xuq82elrzl5pdsKvmFiigHiCC_ehKkoy4zgjSALxIAwprhsZ32yM3yhkH9AwjUq_QJK93Vb1dXlqVa6r-AXAUZcuLAOCKYUB8HgYMgTGAaHgmmhgA6GB1BgSdkKxcBAYXP5moeFRChM8Jwn-B3XmASmTA6rnXFLwRsKDGaIWYCCGciTPIrtmqLLFsFGhzDGVBhZXImp6V9fXXy9E5Mo3W-3d5PIBIHt0BSSCr7szU9KPyv9DAnHzMg_5b-BFoOSwQdNId55TAAKd-PJQfl2JUtYTTJLab6UfJ_JzlvDOQVwOFJABo4LwoIyRwffSWbgbOd_aH79-u3lw583gInuGPY-TXBAP2WfcqjUsVfHvmcw_Iau2BrnqHRoPIybihExdt4vhyyb6pri4HF510q450mDRzACHg0LGJsiMywP-O1F6Qu_z6Msa_UXrfuE_Xc4J5I5D5WNi9K3zJiedu8Fg7DSt41H6VvdHvWlPbdK3z7UdFsdXNe4tmnNAbv6cjpeTm3d6sPc6VNz0e04uvo6XgZr6uZcnyy6pr3iiMOnA3X6qM9Hra91oz81ujqPtbke8XxpTHs9G6NOR1wM-cr7-1LFNB2IOWNX61af6oM3A3reVlVru22I1mVrU1cKnoY8sTodPbHwvxJC4rHbhzUH_LGiFXT-ATYZnilMh5x89z8JFaX3x9P7j0Dp20a2pbTD3Tv9dwAAAP__8tRzeg">