https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63375
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> --- I believe that the testcase is "invalid" - the atomic is an automatic variable which can never be involved in data races given the stack is not shared amongst threads and you do not take the address of the variable and let it escape to other threads.