re PR libstdc++/4548 (When reserving a string to become smaller, program crashes)

2001-11-21  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/4548
	* include/bits/basic_string.tcc (basic_string::reserve):  Never shrink
	below the current size.
	* testsuite/21_strings/capacity.cc (test02):  Add test.

From-SVN: r47246
This commit is contained in:
Paolo Carlini 2001-11-21 23:04:53 +01:00 committed by Phil Edwards
parent ae1139f97d
commit dcc61724f1
3 changed files with 31 additions and 0 deletions