<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/62132>62132</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            homebuilt clang16.0.2 frontend crash
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jbsolomon
      </td>
    </tr>
</table>

<pre>
    Hello,

I've recently built Clang and LLVM from source at release/16.x, but it has a frequent frontend crash (I have a recent build of release/15.x on the same system which is fine.)

It isn't reproducible by building a simple "Hello world!" main using stdio.h and printf, but it is reliably triggered by building Lua 5.4.4 from source.  To reproduce it, I obtained a copy of [Lua's source package](https://www.lua.org/ftp/), decompressed it, and ran:
```
make CC=' clang -emit-llvm -Xclang -disable-llvm-passes'
```

Here is the output:
https://www.dropbox.com/s/90fqxa7kfnz8x8k/crash.txt

Here are the attachments:
[/tmp/lapi-acfa0f.c](https://www.dropbox.com/s/gplu81kj7ackz4d/lapi-acfa0f.c?dl=0)
[/tmp/lapi-acfa0f.sh](https://www.dropbox.com/s/8xrq9a0yx676klg/lapi-acfa0f.sh?dl=0)

My apologies for the ad on the share site, but I wasn't aware of a better option that would host the large generated C file.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVMtu4zgQ_Br60rAgUS_7oMPEgTABMrfFYq8tsSUxpkSFbMX2fP2CsieP9Q4wgEHDpFnVVV1s9F73E1El8geRP25w4cG66qXx1tjRTpvGqkv1nYyxQh5E_Cjib9f1ScjyjcBRSxObCzSLNgwHg1MPOCl4fv77B3TOjuDt4loCZHBkCD0JWSdFdBbyAM3CoBkG9IDQOXpdaOJwbWKaFLQO_QBC7p5gwDcCvPGtbAps9xkyj85gJ-CBwONI4C-eaYTToNsBtIdOTxQJuf-igkH7ScgyFDc7q5ZWN4aguQpSOqgBr8fZEAgpVyfgZJ1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