https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116095
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This might not be a GCC bug. GCC implements the C++ constraint on "satisfaction of atomic constraint of itself" while most compilers don't.