https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71589
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-02-21 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes this happens because the functions in <stdatomic.h> are defined as macros which use the __atomic_xxx built-in functions, and they can operate on normal non-atomic variables.