gcc/libstdc++-v3/include/bits
Jonathan Wakely 61bf02e007 re PR libstdc++/58659 (Construction of shared_ptr from unique_ptr mismatches new/delete and std::allocator for __shared_ptr_count)
PR libstdc++/58659
	* include/bits/shared_ptr_base.h (__shared_count::__shared_count(P,D)):
	Delegate to constructor taking allocator.
	(__shared_count::_S_create_from_up): Inline into ...
	(__shared_count::__shared_count(unique_ptr<Y,D>&&): Here. Use
	std::conditional instead of constrained overloads. Allocate memory
	using the allocator type that will be used for deallocation.
	* testsuite/20_util/shared_ptr/cons/58659.cc: New.
	* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust.

From-SVN: r203274
2013-10-08 13:33:37 +01:00
..
algorithmfwd.h memoryfwd.h: New. 2013-03-08 21:39:24 +00:00
alloc_traits.h alloc_traits.h (allocator_traits::max_size()): LWG 2162: Add noexcept. 2013-06-08 18:31:40 +01:00
allocator.h re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-20 15:50:09 +00:00
atomic_base.h Mark all member functions with memory models always inline v2 2013-05-09 04:22:11 +00:00
basic_ios.h faq.html: Fix spelling. 2013-02-20 22:41:51 +00:00
basic_ios.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
basic_string.h re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-24 10:07:32 +00:00
basic_string.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
boost_concept_check.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
c++0x_warning.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
c++14_warning.h shared_mutex: Implement N3659. 2013-06-16 17:35:06 +01:00
c++config c++config (_GLIBCXX_ABI_TAG_CXX11): Add. 2013-06-10 23:11:05 +00:00
char_traits.h re PR libstdc++/57704 (std::char_traits<char>::lt is not standards-compliant) 2013-06-25 08:39:31 +00:00
codecvt.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
concept_check.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
cpp_type_traits.h type_traits.h (__is_null_pointer): Add std::nullptr_t overload. 2013-05-24 18:27:59 +00:00
deque.tcc stl_deque.h (deque<>::insert(iterator, const value_type&), [...]): Adjust C++11 signatures to take a const_iterator. 2013-06-27 09:51:21 +00:00
forward_list.h re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-25 20:28:12 +00:00
forward_list.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
fstream.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
functexcept.h Print additional info when various out-of-range conditions are detected. 2013-09-21 19:04:13 -07:00
functional_hash.h functional_hash.h (std::__is_fast_hash<>): New. 2013-02-04 21:14:07 +00:00
gslice.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
gslice_array.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
hashtable.h hashtable_policy.h (_Hashtable_alloc): New. 2013-08-08 09:47:29 +00:00
hashtable_policy.h re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-25 20:28:12 +00:00
indirect_array.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
ios_base.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
istream.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
list.tcc re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-18 11:21:51 +00:00
locale_classes.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
locale_classes.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
locale_facets.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
locale_facets.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
locale_facets_nonio.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
locale_facets_nonio.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
localefwd.h memoryfwd.h: New. 2013-03-08 21:39:24 +00:00
mask_array.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
memoryfwd.h memoryfwd.h: New. 2013-03-08 21:39:24 +00:00
move.h include/std/chrono: Collapse redundant 'inline' from 'inline constexpr'. 2013-06-01 21:39:50 +00:00
ostream.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
ostream_insert.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
parse_numbers.h Implement N3642 - User-defined Literals for Standard Library Types 2013-06-01 18:37:47 +00:00
postypes.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
predefined_ops.h predefined_ops.h: New. 2013-09-27 21:17:36 +00:00
ptr_traits.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
random.h re PR libstdc++/58098 (wrong return value of normal_distribution::min()) 2013-08-07 11:41:30 +00:00
random.tcc re PR libstdc++/58302 (compilation error : std::negative_binomial_distribution::operator(e, p)) 2013-09-03 10:12:19 +00:00
range_access.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
regex.h regex.h: (regex_token_iterator<>::regex_token_iterator): Fix compile error. 2013-10-06 17:53:14 +00:00
regex.tcc regex.h: (regex_token_iterator<>::regex_token_iterator): Fix compile error. 2013-10-06 17:53:14 +00:00
regex_automaton.h regex.h: (regex_token_iterator<>::regex_token_iterator): Fix compile error. 2013-10-06 17:53:14 +00:00
regex_automaton.tcc regex.h: (regex_token_iterator<>::regex_token_iterator): Fix compile error. 2013-10-06 17:53:14 +00:00
regex_compiler.h 2013-10-02 Tim Shen <timshen91@gmail.com> 2013-10-02 15:13:18 +00:00
regex_compiler.tcc regex.h: (regex_token_iterator<>::regex_token_iterator): Fix compile error. 2013-10-06 17:53:14 +00:00
regex_constants.h regex.h: Add friend classes. 2013-09-18 15:56:20 +00:00
regex_error.h regex_error.h: Remove _S_error_last to follow the standard. 2013-09-26 21:48:04 +00:00
regex_executor.h regex_executor.h: Add _TodoList class. 2013-10-08 03:41:14 +00:00
regex_executor.tcc regex_executor.h: Add _TodoList class. 2013-10-08 03:41:14 +00:00
regex_scanner.h regex.h: Add friend classes. 2013-09-18 15:56:20 +00:00
regex_scanner.tcc regex_scanner.tcc (_Scanner<>::_M_eat_escape_posix): Let ordinary char escaping in POSIX be valid. 2013-09-28 13:41:09 +00:00
shared_ptr.h unique_ptr.h (make_unique): Declare inline. 2013-05-18 21:18:55 +01:00
shared_ptr_base.h re PR libstdc++/58659 (Construction of shared_ptr from unique_ptr mismatches new/delete and std::allocator for __shared_ptr_count) 2013-10-08 13:33:37 +01:00
slice_array.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
sstream.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_algo.h re PR libstdc++/58437 (Sorting value in reverse order is much slower compare to gcc44) 2013-09-30 17:42:31 +00:00
stl_algobase.h stl_algo.h (remove_copy, [...]): Declare inline. 2013-09-28 20:30:51 +00:00
stl_bvector.h Print additional info when various out-of-range conditions are detected. 2013-09-21 19:04:13 -07:00
stl_construct.h memoryfwd.h: New. 2013-03-08 21:39:24 +00:00
stl_deque.h Print additional info when various out-of-range conditions are detected. 2013-09-21 19:04:13 -07:00
stl_function.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_heap.h predefined_ops.h: New. 2013-09-27 21:17:36 +00:00
stl_iterator.h re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-18 18:31:01 +00:00
stl_iterator_base_funcs.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_iterator_base_types.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_list.h re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-18 18:31:01 +00:00
stl_map.h c++config (_GLIBCXX_ABI_TAG_CXX11): Add. 2013-06-10 23:11:05 +00:00
stl_multimap.h c++config (_GLIBCXX_ABI_TAG_CXX11): Add. 2013-06-10 23:11:05 +00:00
stl_multiset.h c++config (_GLIBCXX_ABI_TAG_CXX11): Add. 2013-06-10 23:11:05 +00:00
stl_numeric.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_pair.h user.cfg.in: Set __cplusplus to 201103L. 2013-02-20 01:52:36 +00:00
stl_queue.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_raw_storage_iter.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_relops.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_set.h c++config (_GLIBCXX_ABI_TAG_CXX11): Add. 2013-06-10 23:11:05 +00:00
stl_stack.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_tempbuf.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_tree.h re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-19 11:40:29 +00:00
stl_uninitialized.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stl_vector.h Print additional info when various out-of-range conditions are detected. 2013-09-21 19:04:13 -07:00
stream_iterator.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
streambuf.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
streambuf_iterator.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
stringfwd.h memoryfwd.h: New. 2013-03-08 21:39:24 +00:00
unique_ptr.h unique_ptr.h (make_unique): Declare inline. 2013-05-18 21:18:55 +01:00
unordered_map.h re PR libstdc++/57619 (std::unordered_map and std::unordered_multimap::insert invoking std::pair move constructor) 2013-06-14 23:35:56 +00:00
unordered_set.h hashtable_policy.h: Add C++11 allocator support. 2013-04-22 20:22:07 +00:00
uses_allocator.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
valarray_after.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
valarray_array.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
valarray_array.tcc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
valarray_before.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
vector.tcc stl_deque.h (deque<>::insert(iterator, const value_type&), [...]): Adjust C++11 signatures to take a const_iterator. 2013-06-27 09:51:21 +00:00