[Bug libstdc++/55123] [C++11] Construction of shared_ptr<const T> from unique_ptr<const T> fails

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 29 21:50:00 GMT 2012


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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-29 21:49:31 UTC ---
Author: redi
Date: Mon Oct 29 21:49:19 2012
New Revision: 192964

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192964
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:
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/55123.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/shared_ptr_base.h



More information about the Gcc-bugs mailing list