diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2012-08-26 00:12:40 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2012-08-26 01:12:40 +0100 |
commit | 6d79ba303c1ff002370cdb1cd5021c2f297e8392 (patch) | |
tree | 5e2680fac6850b15f94ca453fac6bc5a798699ff /libcpp | |
parent | b5106d10ed06bf0530494e0a2d08d582c6852963 (diff) | |
download | gcc-6d79ba303c1ff002370cdb1cd5021c2f297e8392.zip gcc-6d79ba303c1ff002370cdb1cd5021c2f297e8392.tar.gz gcc-6d79ba303c1ff002370cdb1cd5021c2f297e8392.tar.bz2 |
re PR libstdc++/54351 (~unique_ptr() should not set stored pointer to null)
PR libstdc++/54351
* include/bits/unique_ptr.h (unique_ptr<T>::~unique_ptr): Do not use
reset().
(unique_ptr<T[]>::~unique_ptr()): Likewise.
* testsuite/20_util/unique_ptr/54351.cc: New.
* testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-error
line numbers.
From-SVN: r190676
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions