<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/158485>158485</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clangd segfault on lambda template
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
SollyBunny
</td>
</tr>
</table>
<pre>
`auto DoType = [&]<bool (*IsMatchingType)(unsigned char), const int &Width, const unsigned int &Color>() {`
`DoType.template operator()<[](unsigned char Tile){ return Tile == TILE_SOLID; }, g_Config.m_TcOutlineWidthSolid, g_Config.m_TcOutlineColorSolid>();`
Commenting out the call stops clangd from crashing
https://github.com/sjrc6/TaterClient-ddnet/commit/91e95f3ea08e0556c1803ac5c8aee10da30422f9
[crash.txt](https://github.com/user-attachments/files/22320812/crash.txt)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8k09v4ywQxj_N-IISYbAdc_AhcRqpUl_10EjvscJ4bFNhiAB3N99-hd0_0krbExY8M8_vGbAMQY8WsYHyBOU5k0ucnG9enDH302LtPetcf2-gonKJjpzd9X5DAvxMUgGroDwDbzvnDAFWAzs-hv9kVJO2Y1ICE8Dqxa4mPVGT9OtWS5SzIRJtIwFW_a_7OH3vfuk_jltnnAf-sDoIAocTVBToESq6Ae0jzjcjIxJ3Qy-j85sUeLvl-huCXLVZ4Q4n4jEu3q47KVjKdn18enh9eX56PAM_ETicE9v42jo76HE_v17V8xKNtriCvzij-38pVvZN8RkA-Cc_PbZuntFGbUfilkjihERJY0iI7haIMtKOPRm8m4nyMqSxbnVTjLcA_AjsAuwy6jgt3V65GdglvHlVAbtcZUTfGo027vreYgR2UW6edfoQOYpy4ChpjbQsK5XXlEtVqloi5rSXnBaMDWJzg_K02u_j77hN8wf_JaDfyRilmlK0AOwyaINpZYwzWucskXz1YyLrG94LLmSGTX4oD3UpKp5nUyORDV2u2FALWnddJ7q8xqKuqBjKgndFphtGWUlFXuQFozzfD72kQy5E3h3KXPUSCoqz1GZvzPu8d37MdAgLNnlZF3WZGdmhCevjZ8ziL7KeAmPpX_BNKtp1yxigoEaHGL7bRB0NNu12QQHHQS4mEmeJkXPXS_L5IrPFm-aHaaWGH8vu5t0bqnQ9K0aa2Afne8P-BAAA__9q9ydN">