re PR libstdc++/54351 (~unique_ptr() should not set stored pointer to null)
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sun, 26 Aug 2012 00:12:40 +0000 (00:12 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 26 Aug 2012 00:12:40 +0000 (01:12 +0100)
commit6d79ba303c1ff002370cdb1cd5021c2f297e8392
tree5e2680fac6850b15f94ca453fac6bc5a798699ff
parentb5106d10ed06bf0530494e0a2d08d582c6852963
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
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/unique_ptr.h
libstdc++-v3/testsuite/20_util/unique_ptr/54351.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc