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.