On Thu, 2017-10-19 at 15:31 +0300, Alexander Monakov wrote: > On Thu, 19 Oct 2017, Andrew Haley wrote: > > On 19/10/17 12:58, Mattias Rönnblom wrote: > > > Did I misunderstand the semantics of > > > atomic_thread_fence+memory_order_release? > > > > No, you did not. This looks like a bug. Please report it. > > This bug is fixed on trunk, so should work from gcc-8 onwards (PR 80640).
The test case is invalid (I added some more detail as a comment on this bug).