<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60904>60904</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[C2x] Support for _Atomic _BitInt(N)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
c2x,
rejects-valid
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
AaronBallman
</td>
</tr>
</table>
<pre>
Clang currently diagnoses use of `_Atomic _BitInt` as being invalid despite the C standard requiring support for it.
```
_Atomic _BitInt(32) val; // error: _Atomic cannot be applied to integer type '_BitInt(32)'
```
An atomic `_BitInt(N)` is conceptually the same as an atomic structure containing a bit-field of width N, so it should be possible to support.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUs1u2zwQfBrqsrBBUX_2QQf_wMB3yeV7gGAlriQWNKmSyzR--4KKmxZpAQECiZ3hzOxgjGZ2RL1ozqK5Fph48aE_YfDujNbe0RWD14_-YtHNMKYQyLF9gDY4Ox8pQooEfgLRytcT-7sZ4fVs-D_HopWAEQYybgbj3tAaDZriapiAF4ILREanMWgI9D2ZkAdjWlcfGCYfwPBeyKuQJ9HK57cdvz6kDpUS6ghvaEV1BqFuQt2AQvBBVCf4NT6ic55hIMB1tYY0sAfjmGYKwI-VQKjuC6dQHfxTw8kBftBm55-gl4xpJZgIo3cjrZzQ2sfmN-KdciL4CY0c0sgpUB5mNC4ngDAY3k2GrM7B_jCaF3gR6gLRg2GIi09WZxurj9EMlrKPZ277QveVPlZHLKgv266T8tDIslj6oR7qtmoPahgPTVeWUyfLCSeNnWxoxLIwvZKqkkqV5bEu63JP00QtTXigQ4XUoqgl3dHYvbVv970Pc2FiTNS38ijrwuJANm5FUmpU70IpoS5CqUDfaOS42wqQb5trEfrMsRvSHEUtrYkcf7OyYbs18qLeRXOF__-oxN-rz4kXKdh-YV6jqE4f658NL2nYj_4u1C1TP3-7NfisR6jbpj4KddsM_AwAAP__c7z6Uw">