gcc/libstdc++-v3/testsuite/20_util/pair
Ville Voutilainen c1e2889a32 re PR libstdc++/79141 (std::pair<int,int> p = {}; fails to compile due to ambiguous overload)
PR libstdc++/79141
* include/bits/stl_pair.h (__nonesuch_no_braces): New.
(operator=(typename conditional<
__and_<is_copy_assignable<_T1>,
is_copy_assignable<_T2>>::value,
const pair&, const __nonesuch&>::type)): Change __nonesuch
to __nonesuch_no_braces.
(operator=(typename conditional<
__not_<__and_<is_copy_assignable<_T1>,
is_copy_assignable<_T2>>>::value,
const pair&, const __nonesuch&>::type)): Likewise.
(operator=(typename conditional<
__and_<is_move_assignable<_T1>,
is_move_assignable<_T2>>::value,
pair&&, __nonesuch&&>::type)): Likewise.
* testsuite/20_util/pair/79141.cc: New.

From-SVN: r246653
2017-04-03 19:30:58 +03:00
..
astuple Update copyright years. 2017-01-01 13:07:43 +01:00
comparison_operators Update copyright years. 2017-01-01 13:07:43 +01:00
cons Add deduction guides for C++17 (P0433R2, partial) 2017-03-22 15:58:35 +00:00
make_pair Update copyright years. 2017-01-01 13:07:43 +01:00
requirements Update copyright years. 2017-01-01 13:07:43 +01:00
1.cc Update copyright years. 2017-01-01 13:07:43 +01:00
2.cc Update copyright years. 2017-01-01 13:07:43 +01:00
3.cc Update copyright years. 2017-01-01 13:07:43 +01:00
4.cc Update copyright years. 2017-01-01 13:07:43 +01:00
40925.cc Update copyright years. 2017-01-01 13:07:43 +01:00
44487.cc Update copyright years. 2017-01-01 13:07:43 +01:00
70437.cc Update copyright years. 2017-01-01 13:07:43 +01:00
79141.cc re PR libstdc++/79141 (std::pair<int,int> p = {}; fails to compile due to ambiguous overload) 2017-04-03 19:30:58 +03:00
constexpr_get.cc Update copyright years. 2017-01-01 13:07:43 +01:00
moveable.cc Update copyright years. 2017-01-01 13:07:43 +01:00
noexcept_move_assign.cc Update copyright years. 2017-01-01 13:07:43 +01:00
noexcept_swap.cc Update copyright years. 2017-01-01 13:07:43 +01:00
noncopyable.cc Update copyright years. 2017-01-01 13:07:43 +01:00
piecewise.cc Update copyright years. 2017-01-01 13:07:43 +01:00
piecewise2.cc Update copyright years. 2017-01-01 13:07:43 +01:00
swap.cc Update copyright years. 2017-01-01 13:07:43 +01:00
swap_cxx17.cc Update copyright years. 2017-01-01 13:07:43 +01:00
traits.cc Update copyright years. 2017-01-01 13:07:43 +01:00