re PR libstdc++/55123 ([C++11] Construction of shared_ptr<const T> from unique_ptr...
authorJonathan Wakely <jwakely.gcc@gmail.com>
Mon, 29 Oct 2012 21:49:19 +0000 (21:49 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 29 Oct 2012 21:49:19 +0000 (21:49 +0000)
commit1ea58d3499b2362e735218eea1ca9f3f213534c4
treea5167d0291a02c5e09e8f37ca3b9e4d292050dd5
parent077d1abec135863c50dc0d7a11772b23aae22821
re PR libstdc++/55123 ([C++11] Construction of shared_ptr<const T> from unique_ptr<const T> fails)

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.

From-SVN: r192964
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/testsuite/20_util/shared_ptr/cons/55123.cc [new file with mode: 0644]