// RUN: %clang_cc1 -std=c++17 -verify %s // expected-no-diagnostics template struct A { template struct B { B(...); B(const B &) = default; }; template B(U) -> B; }; A::B b = 123; A::B copy = b; using T = decltype(b); using T = A::B; using Copy = decltype(copy); using Copy = A::B;