gcc/libstdc++-v3/include
Jonathan Wakely 74cf9664e8 PR77987 Fix unique_ptr<T[], D>::reset(U) for T != U
PR libstdc++/77987
	* include/bits/unique_ptr.h (unique_ptr<T[], D>::reset<U>(U)): Copy
	value to pointer of the correct type to swap, to support conversions
	allowed by LWG 2118 / N4089.
	* testsuite/20_util/unique_ptr/assign/assign_neg.cc: Move test for
	incompatible deleters from ...
	* testsuite/20_util/unique_ptr/assign/cv_qual.cc: ... here.
	* testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: Move tests for
	incompatible pointers to ...
	* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: ... here. Move
	destructor definition to base class. Test for invalid derived-to-base
	conversion.

From-SVN: r241235
2016-10-17 13:00:44 +01:00
..
backward Update copyright years. 2016-01-04 15:30:50 +01:00
bits PR77987 Fix unique_ptr<T[], D>::reset(U) for T != U 2016-10-17 13:00:44 +01:00
c Update copyright years. 2016-01-04 15:30:50 +01:00
c_compatibility Don't define guard macros when doing #include_next in math.h and stdlib.h 2016-02-01 11:13:40 +00:00
c_global libstdc++/77795 Only declare ::gets for C++98 and C++11 2016-09-30 19:28:53 +01:00
c_std libstdc++/77795 Only declare ::gets for C++98 and C++11 2016-09-30 19:28:53 +01:00
debug Implement P0084R2, Emplace return type, for C++17 2016-10-17 13:00:38 +01:00
decimal Update copyright years. 2016-01-04 15:30:50 +01:00
experimental Avoid #include <functional> in other headers 2016-10-13 17:59:19 +01:00
ext Make sure the return value of malloc_allocator::allocate is zero-initialized so... 2016-10-16 16:31:43 +03:00
parallel algo.h: Generalize usage of std::__iterator_category. 2016-09-25 15:23:45 +00:00
precompiled Implement TR29124 C++ special Math Functions. 2016-01-14 18:12:43 +00:00
profile Add C++17 constexpr to debug and profile mode arrays 2016-08-23 16:54:57 +01:00
std Make std::bind use std::invoke 2016-10-14 20:04:56 +01:00
tr1 Enable Mathematical Special Functions for C++17 2016-08-03 16:54:13 +01:00
tr2 Update copyright years. 2016-01-04 15:30:50 +01:00
Makefile.am Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
Makefile.in Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00