<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54563>54563</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Confusing error: member reference base type '_Atomic(struct x)' is not a structure or union
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pmor13
</td>
</tr>
</table>
<pre>
```
_Atomic struct x { int x; } x;
void f(int y)
{
x.x = y;
}
```
```
$ clang t0.c -std=c11 -pedantic -Wall -Wextra -c
<source>:4:6: error: member reference base type '_Atomic(struct x)' is not a structure or union
x.x = y;
```
The atomic structure is still a structure.
Expected to be:
> accessing a member 'x' of an atomic structure 'x'
Or similar.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1UcGOmzAQ_RpzGQWBHZPkwCHZpNe9VOqxss2QuDIY2WaV_P0OBNRsK_VWZJsZhnnz3rP2zaNmVbGs4syK489j8p01EFMYTYI7sN0JbE8REydKznPw_PfD2wZaxvdT_cH44fmZOp4B0HPPCUKcqbx2EcYSfJ38Z8q3YJzqr5CK3MAmpoZwTFnCZsBG9YlIbn4o5-jEewoKNmbpFG_Rj8EgExcmjlvaFW3AEHyYgg47jQECthiwNwhaRYT0GBAY3y0OkKzVg0kZ34GN0PsEavFmDAg-wNhb3_9T71dd328I6tXjCYegY7Kk5QU8X9rn83If0CRsIHnQJOy4Sr2AMgZjtGSUWpUR2_vE2Leg-r-nLeVX_PcA0XbWqZBnTS2agzioLNnksH7zfTvO-P_RwGwMrr6lNMRJG_9G62rTbdS58R0lzn2sr80Q_C8yg1Ib44iRArmVlchuNd8brcrdXhZVVRyEQG4aKdtdu9-2qhQ8c0qjizWTJybPma15wXkhuOSlkKLI9aHZm1YUupKtllqzbYGdsi6fBuc-XLNQzxz0eI1UdDam-Luo6B6uPeKKr8Z086EeOh9Kkc1s65nqJ5mODYs">