re PR libstdc++/8230 (Buggy allocator behaviour)
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Wed, 13 Nov 2002 22:15:17 +0000 (22:15 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Wed, 13 Nov 2002 22:15:17 +0000 (22:15 +0000)
commit48d1c3c568c1417b86ed9e23f48c5d4344a2d096
tree34209be2f1268c7cac587baa4d7ec94537df451b
parent1a083c0e90c3b466525ad1d31fb9e7af542da55c
re PR libstdc++/8230 (Buggy allocator behaviour)

2002-11-13  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/8230
* include/bits/vector.tcc (vector::reserve): Throw length_error if
requested size is bigger than max_size().
* include/bits/stl_bvector.h (vector<bool>::reserve): Same.
* testsuite/23_containers/vector_capacity.cc (test02): Add.

From-SVN: r59090
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_bvector.h
libstdc++-v3/include/bits/vector.tcc
libstdc++-v3/testsuite/23_containers/vector_capacity.cc