<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...
![image](https://github.com/llvm/llvm-project/assets/148591479/b584467d-459f-430d-b6dd-e6f7313ebd01)

While using the C compiler...
![image](https://github.com/llvm/llvm-project/assets/148591479/32128f5c-3323-4dd3-b34c-1bcdf95ec32f)

I could cleanly compile [bug.zip](https://github.com/llvm/llvm-project/files/13058990/bug.zip) as follows:
![image](https://github.com/llvm/llvm-project/assets/148591479/1f27a76f-e853-4c65-b34c-138ad7a4f3b5)

Nevertheless I get an unexpected segmentation fault:
![image](https://github.com/llvm/llvm-project/assets/148591479/e06bf17d-85ce-44b0-baa2-5f67a171f8a9)



</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">