OSDN Git Service

2007-09-06 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Sep 2007 01:37:31 +0000 (01:37 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Sep 2007 01:37:31 +0000 (01:37 +0000)
commit47bdcdddb2e72c9c37eb16388ed01febe160132e
tree8b2b305ad6e11d82e00296c92eb0ac785ce2d222
parent3026d558160171c8e324325f3e31e2a4e5b1a41d
2007-09-06  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_vector.h (_Vector_base<>::_M_allocate):
Do not call _M_impl.allocate when __n == 0.
* testsuite/23_containers/vector/zero_sized_allocations.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128220 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/testsuite/23_containers/vector/zero_sized_allocations.cc [new file with mode: 0644]