diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-07-10 17:58:56 +0000 |
---|---|---|
committer | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2018-06-28 10:09:59 +0300 |
commit | 1fc73a9aec8b31cd20c21aec0dfd084be04ed1b5 (patch) | |
tree | aa42c4292df4c4c6b10938306d1f7a8447858365 /install-sh | |
parent | ac526093f22cdc8c77919a25ff7b36a47a0f46bb (diff) | |
download | linaro-gcc-sandbox/mkashkarov/fix_stringbuf_capacity.tar.gz linaro-gcc-sandbox/mkashkarov/fix_stringbuf_capacity.tar.bz2 linaro-gcc-sandbox/mkashkarov/fix_stringbuf_capacity.zip |
PR libstdc++/81338 correctly manage string capacitysandbox/mkashkarov/fix_stringbuf_capacity
PR libstdc++/81338
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
Declare basic_stringbuf to be a friend.
* include/bits/sstream.tcc (basic_stringbuf::overflow)
[_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
* include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
length to buffer length.
* testsuite/27_io/basic_stringstream/assign/81338.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250100 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'install-sh')
0 files changed, 0 insertions, 0 deletions