<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69208>69208</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang: 18: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
wierton
</td>
</tr>
</table>
<pre>
Compiler Explorer: https://godbolt.org/z/jroPzx61j
When compile below small program with just a declaration, clang crashes:
```
typedef
__attribute__((alloc_align (1))) void* falloc_align_bool (_Bool);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUs1u4zwMfBr6QjSwqMSxDz6kPz5_hw-7R4OyJVuBbAWS3DZ9-oXiArsoQFAgOCA5M-IY7bRq3cLpGU6vBW9p9qH9sDokvxbKj_f2xS8363TAt8-b80EHkBecU7pFkBegDqib_Ki8SwcfJqDuC6i7Bv_f12clrlC-QnnZ8-9Zrzjs41Bp5z8wLuwc3oKfAi_4YdOM1y0mZBz14Dhwsn4FesHB8TrhEDjO-rF4n1uV3_Eo0_2mR21wr_qeUwpWbUn3PVANVLNzfujZ2WlFoFoANXvgu7cj0AXNP5Beee8yrn_23mWgfP6xtxhbOTay4UK3omrOx-p0EnUxt2clxamulTJSlsI0x8GI2khlzqMuj2QK21JJUpSiEkchTvXBsCKjuCJSrKRs4Fjqha07OPe-ZGkLG-Om26qhsi4cK-3iwzeihzhAlC0MbcY_qW2KcCydjSn-nZBscrrd4fKCos75EqMOWWeEqrSRQb7870G-AdW_ONNGoAqowryJY8r9-97PTQ7Ttug1oTdo12wvJ6ucxuwGkMh30RkNW6fHQ7EF1_74PTbNmzoMfgHq8qnfz9Mt-KseElD3YB6Bugf5PwEAAP__5m3WRg">