gcc/libstdc++-v3/testsuite/20_util/unique_ptr
Jonathan Wakely c3ba63c314 PR libstdc++/87704 fix unique_ptr(nullptr_t) constructors
Using a delegating constructor to implement these constructors means
that they instantiate the destructor, which requires the element_type to
be complete. In C++11 and C++14 they were specified to be delegating,
but that was changed as part of LWG 2801 so in C++17 they don't require
a complete type (as was intended all along).

	PR libstdc++/87704
	* include/bits/unique_ptr.h (unique_ptr::unique_ptr(nullptr_t)): Do
	not delegate to default constructor.
	(unique_ptr<T[], D>::unique_ptr(nullptr_t)): Likewise.
	* testsuite/20_util/unique_ptr/cons/incomplete.cc: New test.

From-SVN: r265423
2018-10-23 14:10:26 +01:00
..
assign Implement LWG 2905 changes to constrain unique_ptr constructors 2018-09-11 11:55:49 +01:00
comparison Update copyright years. 2018-01-03 11:03:58 +01:00
cons PR libstdc++/87704 fix unique_ptr(nullptr_t) constructors 2018-10-23 14:10:26 +01:00
creation Update copyright years. 2018-01-03 11:03:58 +01:00
hash Update copyright years. 2018-01-03 11:03:58 +01:00
modifiers Update copyright years. 2018-01-03 11:03:58 +01:00
requirements Fix location of invocable check for unique_ptr deleter 2018-09-18 17:05:36 +01:00
specialized_algorithms Implement LWG 2905 changes to constrain unique_ptr constructors 2018-09-11 11:55:49 +01:00
54351.cc Update copyright years. 2018-01-03 11:03:58 +01:00
dr2228.cc Update copyright years. 2018-01-03 11:03:58 +01:00