public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/43183]  New: std::unique_ptr::reset() does not conform to N3035.
@ 2010-02-25 23:52 tjgolubi at netins dot net
  2010-02-26  0:04 ` [Bug libstdc++/43183] " paolo dot carlini at oracle dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: tjgolubi at netins dot net @ 2010-02-25 23:52 UTC (permalink / raw)
  To: gcc-bugs

Reference N3035 20.9.10.2.5 para 5.
Ensure all specializations are fixed.
This is what is there now:
      void
      reset(pointer __p = pointer())
      {
        if (__p != get())
          {
            get_deleter()(get());
            std::get<0>(_M_t) = __p;
          }
      }
This is what it should be changed to:
      void
      reset(pointer __p = pointer())
      {
        pointer old_p = get();
        if (__p != old_p)
          {
            std::get<0>(_M_t) = __p;
            get_deleter()(old_p);
          }
      }


-- 
           Summary: std::unique_ptr::reset() does not conform to N3035.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tjgolubi at netins dot net


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-03-02 12:44 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-25 23:52 [Bug libstdc++/43183] New: std::unique_ptr::reset() does not conform to N3035 tjgolubi at netins dot net
2010-02-26  0:04 ` [Bug libstdc++/43183] " paolo dot carlini at oracle dot com
2010-02-26  0:13 ` paolo dot carlini at oracle dot com
2010-02-26  0:16 ` paolo dot carlini at oracle dot com
2010-02-26 18:04 ` paolo dot carlini at oracle dot com
2010-03-01 15:05 ` jwakely dot gcc at gmail dot com
2010-03-01 16:09 ` paolo dot carlini at oracle dot com
2010-03-01 16:24 ` jwakely dot gcc at gmail dot com
2010-03-01 16:35 ` jwakely dot gcc at gmail dot com
2010-03-01 17:06 ` paolo dot carlini at oracle dot com
2010-03-01 20:56 ` redi at gcc dot gnu dot org
2010-03-01 22:22 ` tjgolubi at netins dot net
2010-03-01 22:31 ` redi at gcc dot gnu dot org
2010-03-01 22:38 ` redi at gcc dot gnu dot org
2010-03-01 23:23 ` tjgolubi at netins dot net
2010-03-02  0:41 ` redi at gcc dot gnu dot org
2010-03-02  0:42 ` redi at gcc dot gnu dot org
2010-03-02 11:41 ` jwakely dot gcc at gmail dot com
2010-03-02 12:44 ` jwakely dot gcc at gmail dot com

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).