This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/54351] ~unique_ptr() should not set stored pointer to null


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54351

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-26 00:12:46 UTC ---
Author: redi
Date: Sun Aug 26 00:12:40 2012
New Revision: 190676

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190676
Log:
    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.

Added:
    trunk/libstdc++-v3/testsuite/20_util/unique_ptr/54351.cc
      - copied, changed from r190674,
trunk/libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/unique_ptr.h
    trunk/libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]