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

    <tr>
        <th>Summary</th>
        <td>
            [libc][stdbit] fix type generic macros to work with compound literals
        </td>
    </tr>

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

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

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

<pre>
    [As pointed out on mastodon](https://fosstodon.org/@hackymix@hachyderm.io/111863631398274547) the use of `_Generic` in type generic macros has an interesting parse error unless we use splats for the arguments (when the argument is a compound literal).

https://godbolt.org/z/eK45E1vsP

I should verify that we don't have this issue with our generated headers (by adding tests calling these with compound literals), then fix the headers if needed.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ksuOnDwQhZ_GbErTMgZzWbCY-fvvKMombxAZXGBnjI1cpns6Tx8BHSUzSjZcyj7l-o6PIrKTR-yYfGFCeDu8aiS1Om8xEhOCyXOm1mRC7D4sZn3Q9033TLAE6xNqCGuC4GFWlIIOnskzE41JaSFWPDNxYeIyBjoWTyFOW6nkRg2v99m-HZ_mrjHOJxuYuOR53lRFVeRF24i6lGXNRAvJIKyEEEZgFf_2CT1GO7CKg_WQ7gvCdJRgVkMMBEYRKA_bjBEpWT_BoiIhYIwhwuodEsHt6EqLU4lgDHE_SMVpndEnAiaam0H_rgqWQMEQ5iWsXoOzCaNyTLQnxs-MPx_P9w5MQffBpQf_DyYu-KWU_-dX-vqn6DOQCavTcMVoxzsko9I24-arqBMYdUVIxhJYohXhZpOBsMYDXm3XYVBpjPvk_R2U1ht5QkoEg3Ju_zNID-1HCmKiZeK_bYuH0b7t4L9a2hE8okZ9ynRX6LZoVYZdXvO6rjjPZWa6Sg75WJSjLBQvVInNWBcN1wOqWoq2rTPbCS5KLnKR12Ul5alq6gpR90L1g6pwYCXHWVl3cu46b35lO2rX5JIXmVM9Onok19l-eMQ1dtv2p36diJXcWUr0u0Gyye1p3wXyzOQLJd3bxOT5gPxLflKAW4iv_7ApW6PrPlyxTWbtT0OYmbhsZz9eT0sM33FITFx2EmLissP8DAAA__-vLSxf">