[Bug libstdc++/67572] std::atomic, std::mutex and others are trivially copyable

tkaminsk at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 27 10:24:49 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67572

Tomasz Kamiński <tkaminsk at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tkaminsk at gcc dot gnu.org
   Target Milestone|---                         |5.0
         Resolution|---                         |FIXED

--- Comment #2 from Tomasz Kamiński <tkaminsk at gcc dot gnu.org> ---
The definition of trivially copyable types was adjusted to require at least one
non-deleted copy or move construction or assignment. Above assertions fails
since GCC 5.1:
https://godbolt.org/z/hf8G3cnbY


More information about the Gcc-bugs mailing list