gcc/libstdc++-v3/testsuite/20_util/variant
Jonathan Wakely 0ec78a9369 PR libstdc++/86874 fix std::variant::swap regression
PR libstdc++/86874
	* include/std/variant (_Copy_ctor_base::_M_destructive_move): Define
	here instead of in _Move_assign_base.
	(_Copy_ctor_base<true, _Types...>::_M_destructive_move): Define.
	(_Copy_assign_base::operator=): Use _M_destructive_move when changing
	the contained value to another alternative.
	(_Move_assign_base::operator=): Likewise.
	(_Move_assign_base::_M_destructive_move): Remove.
	* testsuite/20_util/variant/86874.cc: New test.

From-SVN: r263365
2018-08-07 20:13:26 +01:00
..
80165.cc re PR libstdc++/80165 (Constexpr tuple of variant doesn't work) 2018-05-13 13:36:12 +03:00
85183.cc PR libstdc++/85183 fix std::variant move-assignment 2018-04-04 00:03:07 +01:00
86874.cc PR libstdc++/86874 fix std::variant::swap regression 2018-08-07 20:13:26 +01:00
any.cc Update copyright years. 2018-01-03 11:03:58 +01:00
compile.cc Update copyright years. 2018-01-03 11:03:58 +01:00
deduction.cc Update copyright years. 2018-01-03 11:03:58 +01:00
hash.cc Update copyright years. 2018-01-03 11:03:58 +01:00
index_type.cc Update copyright years. 2018-01-03 11:03:58 +01:00
run.cc Update copyright years. 2018-01-03 11:03:58 +01:00