r261644 - in /branches/gcc-8-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Fri Jun 15 19:01:00 GMT 2018


Author: redi
Date: Fri Jun 15 19:01:39 2018
New Revision: 261644

URL: https://gcc.gnu.org/viewcvs?rev=261644&root=gcc&view=rev
Log:
PR libstdc++/86169 unshare COW string when non-const data() called

	PR libstdc++/86169
	* include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
	(basic_string::data()): Unshare string.
	* testsuite/21_strings/basic_string/operations/data/char/86169.cc:
	New.

Added:
    branches/gcc-8-branch/libstdc++-v3/testsuite/21_strings/basic_string/operations/data/char/86169.cc
Modified:
    branches/gcc-8-branch/libstdc++-v3/ChangeLog
    branches/gcc-8-branch/libstdc++-v3/include/bits/basic_string.h



More information about the Libstdc++-cvs mailing list