gcc/libstdc++-v3/testsuite
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
..
17_intro Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
18_support Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
19_diagnostics 50594.cc: For mingw-targets use only static libstdc++-version. 2013-03-25 11:47:39 +01:00
20_util 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
21_strings re PR libstdc++/58163 ([C++11] Pedantic assert on str[str.size()] is wrong in C++11) 2013-08-15 00:15:12 +00:00
22_locale forced.C: Extend current handling of Linux-based x86 systems to cover all GNU systems. 2013-06-10 09:21:29 +02:00
23_containers Print additional info when various out-of-range conditions are detected. 2013-09-21 19:04:13 -07:00
24_iterators re PR libstdc++/58403 (__normal_iterator triggers odr-use) 2013-09-12 15:15:34 +00:00
25_algorithms predefined_ops.h: New. 2013-09-27 21:17:36 +00:00
26_numerics re PR libstdc++/58302 (compilation error : std::negative_binomial_distribution::operator(e, p)) 2013-09-03 10:12:19 +00:00
27_io forced.C: Extend current handling of Linux-based x86 systems to cover all GNU systems. 2013-06-10 09:21:29 +02:00
28_regex regex.h: (regex_token_iterator<>::regex_token_iterator): Fix compile error. 2013-10-06 17:53:14 +00:00
29_atomics atomic (compare_exchange_weak, [...]): Add call to __cmpexch_failure_order. 2013-07-29 17:13:05 +00:00
30_threads re PR libstdc++/57641 (std::timed_mutex.try_lock_until() is broken) 2013-06-18 23:55:02 +01:00
abi Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
backward Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
config Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
data
decimal Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
ext re PR libstdc++/58415 (__sso_string_base move constructor does not null terminate local data when moving from empty string) 2013-09-13 18:32:42 +00:00
lib re PR testsuite/57605 (colors break note pruning in the testsuite) 2013-09-20 19:52:29 +02:00
libstdc++-abi Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
libstdc++-dg Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
libstdc++-prettyprinters re PR libstdc++/53477 (pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range) 2013-08-20 19:20:42 +00:00
performance regex_executor.h: Add _TodoList class. 2013-10-08 03:41:14 +00:00
tr1 re PR c++/54537 (undiagnosed using-declaration conflicting with used function) 2013-08-01 14:24:37 -05:00
tr2 Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
util regex.h: (regex_token_iterator<>::regex_token_iterator): Fix compile error. 2013-10-06 17:53:14 +00:00
Makefile.am Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
Makefile.in Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00