]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/8230 (Buggy allocator behaviour)
authorBenjamin Kosnik <bkoz@redhat.com>
Mon, 2 Dec 2002 20:01:54 +0000 (20:01 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 2 Dec 2002 20:01:54 +0000 (20:01 +0000)
commit38c05b07da94834e6373e98291ca4716fa03c700
tree57aa16f9314d122ddc3509290978ed241eedc3a4
parent38a03f16610715d13bf5bdcbee64507a6175ea5a
re PR libstdc++/8230 (Buggy allocator behaviour)

2002-12-02  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/8230
        * include/bits/stl_vector.h (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: r59734
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_bvector.h
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/testsuite/23_containers/vector_capacity.cc