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

    <tr>
        <th>Summary</th>
        <td>
            [libc++] std::unreachable should probably trap in some hardening modes
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            var-const
      </td>
    </tr>

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

<pre>
    I am not certain which modes yet, but since `std::unreachable` invokes UB and we want to catch UB, it would make sense to guarantee a trap there when we are in some hardening modes (e.g. certainly in the debug mode).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kc-O4ywQxJ8GX1pj2RD_O_gw-UaRvgeYB2igY9jBEEE7Ud5-ZU9Wu4ddCYlLdamqfliKXyLRLLqzkPKO-c2kWFhIKbqPCjd2Kc_B-hQjVTrZ5_w_4AoxMRjKjD7Cw3njYE2WCjyJhfwP9MZQfDQEom8KW6HehXrfYiY0DnUg0Tfg4z19UYHPM2C08CB4YGTgBAbZOPg871ae4ZG2YGHFL4JCsdAuWTbMGJkIEDjjDdhRJng4irsTZgIfoaSVwGG2FH1cXhmFHKle6l_5w3NXsiOwpLdvkZBTXdlZ2UlNWNHc9lM3KdWOY-VmhY0a-17i1MpODkM_tXQ10zSOuu9bPVV-lo1UzSRH2SjVjPX1pMehpVOrrO2uQydODa3oQx3Cfa1TXipfykZzPwxKVgE1hfIiErw2Qp6PdyDJ8370preliFMTfOHy24Y9h4PlH2fdB_yNABR3zHrLSaMOz-8V_7FZteUwO-Zb2X3kRcjL4tltujZpFfKyB3h9b7ecfpBhIS9HqSLk5ej1MwAA___9Scku">