https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102401
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |78620 --- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- std::bit_cast says the padding bits have unspecified values, so we don't necessarily need to copy them. We just can't reject them for being uninitialized. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78620 [Bug 78620] C++11, Padding bytes not zero-intialized when POD is initialized with compiler generated default constructor