// { dg-do compile { target c++17 } } template struct Cont; template class Base { using type = T; friend Cont; }; template struct Cont { using argument_type = typename Base::type; Cont(T, argument_type); }; Cont c(1, 1);