diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-07-02 21:54:06 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-07-03 10:26:23 +0100 |
commit | bc3ec8684f7111a06fde433bbe57caa385b178af (patch) | |
tree | 373c5899c76d6a9fcdfaedc270c8ee487de40383 /libcpp/include/cpplib.h | |
parent | c512c9090f52e7666730db9117c6ec6ca11cf3b8 (diff) | |
download | gcc-bc3ec8684f7111a06fde433bbe57caa385b178af.zip gcc-bc3ec8684f7111a06fde433bbe57caa385b178af.tar.gz gcc-bc3ec8684f7111a06fde433bbe57caa385b178af.tar.bz2 |
libstdc++: Fix regression in std::uninitialized_fill for C++98 [PR120931]
A typo in r15-4473-g3abe751ea86e34 made it ill-formed to use
std::uninitialized_fill with iterators that aren't pointers (or pointers
wrapped in our __normal_iterator) if the value type is a narrow
character type.
libstdc++-v3/ChangeLog:
PR libstdc++/120931
* include/bits/stl_uninitialized.h (__uninitialized_fill<true>):
Fix typo resulting in call to __do_uninit_copy instead of
__do_uninit_fill.
* testsuite/20_util/specialized_algorithms/uninitialized_fill/120931.cc:
New test.
Diffstat (limited to 'libcpp/include/cpplib.h')
0 files changed, 0 insertions, 0 deletions