https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58605
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- Fixed for GCC 10. For C++20 the std::atomic<T> default constructor will value-initialize its T object, for older standards it will continue to default-initialize (which will use a default constructor if there is one, and that's not a bug).