Fix up the final bits of breakage due to clang v5 generating bad implicit template deduction guides - specifically for copy-ctors

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@333381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2018-05-28 19:20:21 +00:00
parent afdadcd893
commit d1e11a1a6f
3 changed files with 17 additions and 12 deletions

View File

@@ -9,7 +9,10 @@
// <array>
// UNSUPPORTED: c++98, c++03, c++11, c++14
// UNSUPPORTED: clang-5
// UNSUPPORTED: libcpp-no-deduction-guides
// Clang 5 will generate bad implicit deduction guides
// Specifically, for the copy constructor.
// template <class T, class... U>
@@ -51,8 +54,6 @@ int main()
}
// Test the implicit deduction guides
// FIXME broken: no matching constructor
#if 0
{
std::array<double, 2> source = {4.0, 5.0};
std::array arr(source); // array(array)
@@ -61,5 +62,4 @@ int main()
assert(arr[0] == 4.0);
assert(arr[1] == 5.0);
}
#endif
}