This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]