public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/36949]  New: [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count
@ 2008-07-27 15:48 d dot frey at gmx dot de
  2008-07-27 16:20 ` [Bug libstdc++/36949] " d dot frey at gmx dot de
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: d dot frey at gmx dot de @ 2008-07-27 15:48 UTC (permalink / raw)
  To: gcc-bugs

Here's a minimalistic example:

#include <memory>

struct A : std::enable_shared_from_this< A > {};

int main()
{
  std::make_shared< A >()->shared_from_this();
}

It throws a bad_weak_ptr exception, which is AFAICT wrong.


-- 
           Summary: [C++0x] make_shared does not initialize
                    enable_shared_from_this' internal shared_count
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: d dot frey at gmx dot de


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


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

end of thread, other threads:[~2008-07-28 23:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-27 15:48 [Bug libstdc++/36949] New: [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count d dot frey at gmx dot de
2008-07-27 16:20 ` [Bug libstdc++/36949] " d dot frey at gmx dot de
2008-07-27 17:33 ` paolo dot carlini at oracle dot com
2008-07-28 20:28 ` jwakely dot gcc at gmail dot com
2008-07-28 23:10 ` paolo dot carlini at oracle dot com
2008-07-28 23:29 ` paolo at gcc dot gnu dot org
2008-07-28 23:31 ` paolo dot carlini at oracle 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).