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

    <tr>
        <th>Summary</th>
        <td>
            [LIBCXX] [EASYFIX] __locale header contains a bug when using Newlib as C library
        </td>
    </tr>

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

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

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

<pre>
    https://github.com/llvm/llvm-project/blob/c3e09036e84a71f21672ae5ed4540edd5444cf94/libcxx/include/__locale#L552

This line is currently bugged for Newlib. Since Newlib uses all the 8 bits of the type `char` you can not check for overlapping bits as is done on this line of code. Not sure why this static_assert even needs to be here, probably best to remove it as it was 10 months ago.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUk1vnDAQ_TVwGQWBwV44cNhsGilSlEt6SE-RbQZwazCyzW7233dgs-q5EmLmaeT3MbZy3bUdY1xCUh4T9kzfYOK4qky7iYC153t5WLz7jToSVNYpKrrEvMlLgXUlD0XPCnFgEjl2Fa9y7DpeVZXum2ojMEp_fVFjZm3XDqn7_LROS0tt-co5S_KnJD_e_j9HE8CaGYGqXr3HOdorqHUYsIPeeXjDC1Fm8E58-I1gDRhAWgtxRKhBmRjA9TuK1wUhEbkepacCV7eCljPMLoIeUf_ZWd0ZvZXLYubhdlqGzUHnyImbiehui1i16zCDNzofVo9wGa-3eYgyGv0pQ0AfAc9IIohdgOhAIYzoKfEJaJlKqi0UhrjNPE4kDybuohEuVIocJjfHkYwMLkuxLYQQTcGKnKVdW3ZN2cg0mmixTfjj68vj6eMj4U9A4Mfx_dfzy47uiyZt2aEn53OUZibSbaPknCyuYcv8vUdSPlFO5aW_pqu3__9ATAgrBmp4LbhIx7buZa2rXBWs4QUqwWtWV70s-loxlA1PrVRowxaDLKemZTnbYh5YmdeMZYqpntKKSgpZosCEHtgkjc024cz5IfXt7oESBRpaE2L4N6TbMANdw51frnF0viXJCd0y4WxwvWAwU7o7b3fbfwEwWAYT">