<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69791>69791</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Casting away const in plain C leads to a segmentation fault
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
White-Pack
</td>
</tr>
</table>
<pre>
On my 32-bits VM...

While using the C compiler...

I could cleanly compile [bug.zip](https://github.com/llvm/llvm-project/files/13058990/bug.zip) as follows:

Nevertheless I get an unexpected segmentation fault:

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0k7tu3DoQhp-GaggKvEpiocIXLODinKSK6yE5lJhwpcWSsuM8fSDFRgAjTQK4GRUCBt__DX8oJU0L4kjMLTH3DWx1Xq_j45wqss_gvzVuDS_jp4WeX6iSzKVa6Jf_2rYl_J7wGyIFMbfpDBMSc0_kMNd6KUTdEHki8jSlOm-u9euZyFPOT28fdrmuX9FXIk9QCtZC5EnowVihe0vkyZlB664PTBsbmVY8MNeFwLCLvRIKXeCCSPvKcMzHOWWkW0nLROuM9I769XxJGa8fDaukkEM0niklFdMhKOaU9kw4H6I16JWM72AfqF-3HKjPCEt-eUOlxNy6bWp_pMs_AsaU8eBT3AzW8t3l60JpKRQa15zX52PnRzoRUfbQd5HhYBTTvjOvTtQAoQcdlTPvnPyPT3itM2YshT7QCSuFhW4Lfr-grxhowemMS4Wa1oVG2HL96BTIOxdFH9hgPDKtHWcOQDITux5EL-IA9l2KX7MJowpWWWhwFJ3tB70fpJnHYKQA3duhNxw0Cu4RQKFHMB1oMzRplFwqwSWXUhluWhHACyU8GhcRlCea4xlSbvcA7XqdmlTKhmNneyuaDA5zOdos5YLP9PhJpNzLfR2P0G6bCtE8p1LL7y011YzjHZS6NwieYX-VS6k0LfSSIS30jmaEUGhdKfzhGM12zeNfez_4du8H_88AAAD___yWYXE">