// PR c++/98077 // { dg-do compile { target c++17 } } // A variant of class-deduction102.C where the template placeholder is a template // template parameter and ReturnType has more levels than CallableTraitT. template struct function { template function(T); using type = R; }; template function(T) -> function; template struct CallableTrait; template struct CallableTrait> { using ReturnType = R; }; template class Tmpl> using CallableTraitT = CallableTrait; template struct A { template class Tmpl> using ReturnType = typename CallableTraitT::ReturnType; }; using type = A::ReturnType; using type = int;