<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/127421>127421</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang: Failed assertion in nested instantiation
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
katzdm
</td>
</tr>
</table>
<pre>
While investigating a separate crash in a clang fork, I came across this gnarly nested instantiation that ICE's when assertions are enabled.
https://godbolt.org/z/317rj76cK
I wish I could say that I could reproduce this with fewer than three layers of nested templates - alas, nay.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxskUFv4ywQhn8Nvowa4cGOmwOHfP3WUrU_YM9jM7ZpMUQMbpT--pXTrCqt9oQEL8Pz8pCInyOzVe1_qv2_oq0sKdt3Kp9urYbkbvbX4gODjx8sxc9UfJyBQPhCmQrDmEkW8BEIxkBxhinld4Uv8AojrQw05iQCZfECc6QcbhBZCjvwUQrF4qn4FKEsVOD15YfCTuC6cAQS4byfCVBm4EhDYHdQ-qz0eSnlIsqcFfYK-zm5IYVySHlW2H8q7E3d5bfuOP78ir_C1cuyM6UtOBC6PR58bGS-5OS2kb9Ar74sMPGV8x7b4TIzBLpxFkjTnwaF10ugwgJPQIFkrx3pdqicNe5kTlSxrTtz6lpE01aLPR4Hg62pn0_N1LTH52PdTbqtx1o3zWgcVt6ixlZj3WlttGkOpmlq15qaNE4jG6MazSv5cAjhY937Vl5kY1tj12BdBRo4yN0m4t2HQtzFZrtfeBq2WVSjg5ci3yOKL4Htyz1uztCTD-y-_3-3-y9n1ZaD_UuEL8s2HMa0Kuz3-Y_l6ZLTG49FYX_nFYX9A_nD4u8AAAD__wEY1Rk">