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

    <tr>
        <th>Summary</th>
        <td>
            clang++ crash with -std=gnu++20 -O1
        </td>
    </tr>

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

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

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

<pre>
    
foundBugs $ /home/dcb38/llvm/results/bin/clang++ -c -w -std=gnu++20 bug2.cc
foundBugs $ /home/dcb38/llvm/results/bin/clang++ -c -w -std=gnu++20 -O1 bug2.cc
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
...
foundBugs $ /home/dcb38/llvm/results/bin/clang++ -v
clang version 18.0.0git (https://github.com/llvm/llvm-project.git bc82cfb38d83f1afeb2c290aa472c2e2e88919cb)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/dcb38/llvm/results/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/13
Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/13
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
Found HIP installation: /usr/local, version 5.5.30202
foundBugs $ 


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VE2P5DQQ_TXOxerILieZ5JBD98wGVkJipeWO_FGdmHXbLX_MDP8eudOwgGAEaLgkUvnVq6dXHzIlu3rEmfQn0j81suQtxNloJXjXqGB-ngl7Iux4DsWbU1kTJdBRAssWLkhgqciRwOLc84XAEjEVlxOBRVlPYNFO-pXAicCJHjQ9vNBDyoaIp9WXPQyMqrJCq_X_X-jwPf9jsU_ffTh-_kBTURebqayPNOI1xExzoFvO10TEkcBCYFlt3opqdbh8VVF_h2sMP6HOBBabUsGqiUpvqPXaFYM0b0h1lGmjSuovOUqNBB7pNeI1Bo0poaEplLiHa6ZMKWgrMxoai6dJR3vN7S65bdv3M-p5p7rF6DPGZIOnfGxZy1abKYHx33nQ1iylR9BnJUYzijOXZ1SgYWJSdg-gAQHHceKTVgSmvfwPMq6YiTjS13H4cegOxX_x4cUfnPXl9VA7uOO2iNLQSzDoKvoakn3dnz76lKVzaJ5srE__0I5b7lKNpFp6Y43MSL95fKR255PZBn_nKylWGquqD1oTWO5qI5pN5l0sgYWLnfYzOtS1he_E9_ibwEtx2dZEcaQtESfSscvQvYUScIcJ-JO4t7h2Y779-OkN-UFLV8f21-Hp274VDBj85ZDeYvu3MbMwk5hkgzN_YAOHDnjfbLNAZcyZQd8P49hNzJjzA1OcD9M0qEH0jZ2BQcc4dHwCIfp2Usj5pKZu6LjReiIdw4u0rq09b0Ncm9tizg-T6FnjpEKXbgcP4L4NUG9fnG-jrMqaSMecTTl9Zcg2O5x_vzz7Sr_YvP3NqWlKdPN_vyE3tb8EAAD__5eqvI4">