]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/bits/basic_string.tcc
re PR libstdc++/8347 (empty vector range used in string construction causes core...
authorPaolo Carlini <pcarlini@unitus.it>
Sun, 27 Oct 2002 07:35:06 +0000 (08:35 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 27 Oct 2002 07:35:06 +0000 (07:35 +0000)
commit085825b83b283c7533aa4d95ceda37231c4c99dd
tree2c476023bdd470f4ec06836f5845a7aa69a038c6
parent881fc3545960a3a2da8d7c52fb87fd75039c22e5
re PR libstdc++/8347 (empty vector range used in string construction causes core dump.)

2002-10-27  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/8347
* include/bits/basic_string.tcc
(string::_S_construct(_InIter, _InIter, const _Alloc&,
forward_iterator_tag)): Do not throw logic error if
__beg == NULL && __end == __beg.
(string::string(const _CharT*, const _Alloc&)): Tweak.
* testsuite/21_strings/ctor_copy_dtor.cc: Add test05 from PR.

From-SVN: r58577
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.tcc
libstdc++-v3/testsuite/21_strings/ctor_copy_dtor.cc