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

    <tr>
        <th>Summary</th>
        <td>
            Default comparision operator + zero-sized bit field cause crash in Clang 14 / 15
        </td>
    </tr>

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

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

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

<pre>
    Sample code: https://godbolt.org/z/bW71vGW1G
Versions prior to 14 do not crash but result is incorrect (and it does not look to me like something that should cause undefined behaviour)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckb2O2zAQhJ-GahZnkKsfywWLuxi6BwiQq0lxLTFHcQX-OIifPpATJECqLRYzmPnG5OyXSKRF_yb6a2NqWTnpfTd3Cpehsex-6q9m2wPBzI5E-wprKXsW7avASeC0sLMcyonTInB6CJzsx1nd3z_Uu5BXIV-_UcqeY4Y9eU5QGFQHjiFygTmZvIKtBRLlGgr4DD7OnBLNBQSOJjrwBRxTfgoC8-dhsREE_0mQeaOy-rhAWU2BvHINDmZTM0GNjm4-kgNLq7l7rkngpXG6dZf2YhrSajiPI44dts2qL8PQS1RyHNUwWtt3bujQDK3sB-xwto3XKLGVrepQqbZrT-rcSeNGeZPWOHNG0UnajA-nEO7bAaTxOVfSg-rUuQnGUshP0IiRfsDzKRAP7kkfmhdblyw6GXwu-Z9L8SWQvtLNHIhm3naT_MEUeKdkCicQ-AYPSvyS_eMo7AvcPP1F8Zuzj_AlmLgcAwicQPVNTUH_t6cva7WnmTeB0xHhz3nZE3-nuQicnsGzwOlZ7FcAAAD__6twvL8">