https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98965
--- Comment #5 from Martin Sebor ---
I was thinking of the latter, i.e., splitting the assignment into a series of
ordinary and atomic, the latter per member. The union case would be diagnosed
(it too should be straightforward to detect).
But C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98965
--- Comment #4 from joseph at codesourcery dot com ---
The difficulty with making such an assignment atomic is that atomic
operations for different sizes of atomic access don't interoperate on the
same memory; if the struct contains an _Atomic
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98965
Martin Sebor changed:
What|Removed |Added
Keywords||diagnostic
--- Comment #3 from Martin Seb