diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-06-10 13:51:52 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-06-12 15:06:47 +0100 |
commit | 3f2f9059c7f76ff888e9d0e8f10dec6f48e346c9 (patch) | |
tree | 09519b032f716562d1edff0663ddef866c918539 /libphobos/d_rules.am | |
parent | adcc815a01ae009d2768b6afb546e357bd37bbd2 (diff) | |
download | gcc-3f2f9059c7f76ff888e9d0e8f10dec6f48e346c9.zip gcc-3f2f9059c7f76ff888e9d0e8f10dec6f48e346c9.tar.gz gcc-3f2f9059c7f76ff888e9d0e8f10dec6f48e346c9.tar.bz2 |
libstdc++: Do not use memset in _Hashtable::clear()
Using memset is incorrect if the __bucket_ptr type is non-trivial, or
does not use an all-zero bit pattern for its null value.
Replace the three uses of memset with std::fill_n to set the pointers to
nullptr.
libstdc++-v3/ChangeLog:
* include/bits/hashtable.h (_Hashtable::clear): Do not use
memset to zero out bucket pointers.
(_Hashtable::_M_assign_elements): Likewise.
Diffstat (limited to 'libphobos/d_rules.am')
0 files changed, 0 insertions, 0 deletions