OSDN Git Service

2012-08-26 Jonathan Wakely <jwakely.gcc@gmail.com>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Aug 2012 00:29:41 +0000 (00:29 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Aug 2012 00:29:41 +0000 (00:29 +0000)
commita5ee3c1a1d0f09938f0f8d2b84dc742562ac107e
tree6a04fbfd965b080eee7164e838d1ec42cb0e74d9
parentdc6935b634570d4c4795099753850c2668bfddf5
2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
    Geoff Romer  <gromer@google.com>

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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@190681 138bc75d-0d04-0410-961f-82ee72b054a4
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