public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/54351] ~unique_ptr() should not set stored pointer to null
Date: Sun, 26 Aug 2012 00:30:00 -0000	[thread overview]
Message-ID: <bug-54351-4-zqMC37AsCz@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54351-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-26 00:29:46 UTC ---
Author: redi
Date: Sun Aug 26 00:29:41 2012
New Revision: 190681

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

Added:
    branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/unique_ptr/54351.cc
      - copied, changed from r190679,
branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc
Modified:
    branches/gcc-4_7-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_7-branch/libstdc++-v3/include/bits/unique_ptr.h
   
branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc


  parent reply	other threads:[~2012-08-26  0:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-22 18:30 [Bug libstdc++/54351] New: ~unique_ptr() should not set __p " gromer at google dot com
2012-08-22 18:44 ` [Bug libstdc++/54351] " redi at gcc dot gnu.org
2012-08-22 18:47 ` redi at gcc dot gnu.org
2012-08-22 18:51 ` redi at gcc dot gnu.org
2012-08-22 18:58 ` redi at gcc dot gnu.org
2012-08-22 19:11 ` gromer at google dot com
2012-08-22 19:28 ` redi at gcc dot gnu.org
2012-08-22 19:49 ` [Bug libstdc++/54351] ~unique_ptr() should not set stored pointer " gromer at google dot com
2012-08-26  0:13 ` redi at gcc dot gnu.org
2012-08-26  0:30 ` redi at gcc dot gnu.org [this message]
2012-08-26  0:31 ` redi at gcc dot gnu.org
2012-12-18 21:59 ` gromer at google dot com
2015-05-26 23:45 ` rs2740 at gmail dot com
2015-05-27  8:01 ` redi at gcc dot gnu.org
2015-05-27  9:11 ` rs2740 at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-54351-4-zqMC37AsCz@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).