[Bug c++/93916] Implicit copy/assignment alters padding bits of storage

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 24 23:00:00 GMT 2020


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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

    std::memset(storage.bytes, 0, sizeof(storage.bytes));
    From* p = new (storage.bytes) From(from);

The memset here is considered as Dead code.


More information about the Gcc-bugs mailing list