1 // RUN: %clang_cc1 -std=c++17 -verify %s
2 // expected-no-diagnostics
4 template<typename T
> struct A
{
5 template<typename U
> struct B
{
7 B(const B
&) = default;
9 template<typename U
> B(U
) -> B
<U
>;
14 using T
= decltype(b
);
15 using T
= A
<void>::B
<int>;
17 using Copy
= decltype(copy
);
18 using Copy
= A
<void>::B
<int>;