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

    <tr>
        <th>Summary</th>
        <td>
            `clang` Crashes under certain conditions on MacOS.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    I created a C++20 modules project incorporating STL libraries and OpenMP, but it suddenly crashes. I've set up a minimum reproduction project at [gen740/InternalCompilerError](https://github.com/gen740/InternalCompilerError). (I couldn't minimize the issue further!)

The error message can be found here: https://github.com/gen740/InternalCompilerError/actions/runs/7591975767/job/20680741692#step:8:78

I also confirmed that this issue occurs in the HEAD branch. However, I can't reproduce it on Compiler Explorer at https://godbolt.org/z/h8M1sq5zc.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykk8-OpDYQxp-muJQWmQLa9IFDT_egbSmjjbT7AsZUN14Zm_jPJDtPH0HPJlEOc9kLFpJd9fu-r0rFaO6OuYf2CdpLoXKafejv7GQjitFPP_or6sAq8YQKz0BPQE8kcPFTthxxDf4764TGaR9WH1Qy7o5fv_2G1oxBBcMRlZvwy8ru5XegM445oUkY8zSxsz9QBxVnjiVegeQrY-SEeUWFi3FmyQsGXoOfsk7Gu3_6qYTQPj04gYarSxycsme_rMZyeA7BB2gvQN2c0hqhPgENQMPdpDmPpfbL9vPxczqWCNRdUftsJwck0wPKvDGmmdHEmBlvOaSZA1AFdARxAXF6fL_NjLxVwoVjVHdGrRyOjDef3YQzB4b6hL8AOKjdlQg0hLwfsj1WR9nKgwQavvsRaCBx6IRsqsORgOqYeIX61EF9kt1_aa-obPSovbuZsPCEaVYJ02ziu06vdQ4Rjdu1f34-XXAMyum5xM_-T37dLDjjdRO5W_UzN97i9g5_suPzX6v1gcMW4v_E-2n0NpU-3IGGN6Bh7l6q-Ef7psti6uvpWB9VwX0lRSupPtRtMfc1ty1VXcMTH6SqD1VbT_pGTaXHm6CKCtOToEZUJEQjZNWWDbVHllLebk3XkCRoBC_K2NLa12VrXuyKe9l1tSisGtnGfUOItFXuDkTbsoR-u_9pzPcIjbAmpvhvhWSS5R4O4vHiIPD8GHTMbuKAmkNSxm1-T2YPcfPoRekvX8siB9t_MBZbk_fj0_tCAA078z4DG_bfAQAA__98iz7M">