public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/36950] New: [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count
@ 2008-07-27 16:16 d dot frey at gmx dot de
2008-07-27 16:20 ` [Bug libstdc++/36950] " d dot frey at gmx dot de
0 siblings, 1 reply; 2+ messages in thread
From: d dot frey at gmx dot de @ 2008-07-27 16:16 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=36950
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libstdc++/36950] [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count
2008-07-27 16:16 [Bug libstdc++/36950] 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 ` d dot frey at gmx dot de
0 siblings, 0 replies; 2+ messages in thread
From: d dot frey at gmx dot de @ 2008-07-27 16:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from d dot frey at gmx dot de 2008-07-27 16:19 -------
Sorry, reporting it *once* should be enough :-}
*** This bug has been marked as a duplicate of 36949 ***
--
d dot frey at gmx dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36950
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-27 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-27 16:16 [Bug libstdc++/36950] 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++/36950] " d dot frey at gmx dot de
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).