https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110608
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think GCC is correct here ... GCC is the only compiler which implements the `satisfaction of atomic constraint not depending on itself` part of the C++ standard (there are a few open bugs dealing with that but just left open because maybe the C++ standard will change).