This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/55123] [C++11] Construction of shared_ptr<const T> from unique_ptr<const T> fails
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Oct 2012 21:56:25 +0000
- Subject: [Bug libstdc++/55123] [C++11] Construction of shared_ptr<const T> from unique_ptr<const T> fails
- Auto-submitted: auto-generated
- References: <bug-55123-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55123
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-29 21:56:25 UTC ---
Author: redi
Date: Mon Oct 29 21:56:12 2012
New Revision: 192965
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192965
Log:
PR libstdc++/55123
* include/bits/shared_ptr_base.h (__shared_count::_S_create_from_up):
Do not instantiate allocator with element_type.
* testsuite/20_util/shared_ptr/cons/55123.cc: New.
Added:
branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/shared_ptr/cons/55123.cc
Modified:
branches/gcc-4_7-branch/libstdc++-v3/ChangeLog
branches/gcc-4_7-branch/libstdc++-v3/include/bits/shared_ptr_base.h