// PR c++/98077 // { dg-do compile { target c++17 } } template struct function { template function(T); using type = R; }; template function(T) -> function; template struct CallableTrait; template struct CallableTrait> { using ReturnType = R; }; template using CallableTraitT = CallableTrait; template using ReturnType = typename CallableTraitT::ReturnType; using type = ReturnType; using type = int;