]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/ChangeLog
LWG2788 basic_string spurious use of a default constructible allocator
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 May 2019 19:48:48 +0000 (19:48 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 May 2019 19:48:48 +0000 (19:48 +0000)
commit01cad9ee79e109e14a84abcc7c49d5714a1bd9f4
treec88ec42e02542b860de151cb357fe16d33466a2b
parentc950e033e4467fb43cbfda2e0609b2664c5753bd
LWG2788 basic_string spurious use of a default constructible allocator

This only change the cxx11 basic_string, because COW strings don't
correctly propagate allocators anyway.

2019-05-30  Nina Dinka Ranns  <dinka.ranns@gmail.com>

LWG2788 basic_string spurious use of a default constructible allocator
* include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
(basic_string::_M_replace_dispatch): Construct temporary string with
the current allocator.
* testsuite/21_strings/basic_string/allocator/char/lwg2788.cc: New.
* testsuite/21_strings/basic_string/allocator/wchar_t/lwg2788.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271789 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.tcc
libstdc++-v3/testsuite/21_strings/basic_string/allocator/char/lwg2788.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/lwg2788.cc [new file with mode: 0644]