PR libstdc++/59829 * include/bits/stl_vector.h (vector::data()): Call _M_data_ptr. (vector::_M_data_ptr): New overloaded functions to ensure empty vectors do not dereference the pointer. * testsuite/23_containers/vector/59829.cc: New. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust dg-error line number. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. From-SVN: r207241
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
allocator | Loading commit data... | |
bool | Loading commit data... | |
capacity | Loading commit data... | |
cons | Loading commit data... | |
data_access | Loading commit data... | |
debug | Loading commit data... | |
element_access | Loading commit data... | |
ext_pointer | Loading commit data... | |
modifiers | Loading commit data... | |
profile | Loading commit data... | |
requirements | Loading commit data... | |
types | Loading commit data... | |
14340.cc | Loading commit data... | |
15523.cc | Loading commit data... | |
18604.cc | Loading commit data... | |
26412-1.cc | Loading commit data... | |
26412-2.cc | Loading commit data... | |
40192.cc | Loading commit data... | |
52591.cc | Loading commit data... | |
58764.cc | Loading commit data... | |
59829.cc | Loading commit data... | |
check_construct_destroy.cc | Loading commit data... | |
debug_mode_requires_reallocation-1.cc | Loading commit data... | |
debug_mode_requires_reallocation-2.cc | Loading commit data... | |
init-list.cc | Loading commit data... | |
range_access.cc | Loading commit data... | |
zero_sized_allocations.cc | Loading commit data... |