This is the mail archive of the gcc-patches@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]

[v3] fix PR 54351


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.

Tested x86_64-linux, committed to trunk, will commit to 4.7 too.

Attachment: patch.txt
Description: Text document


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