template struct bar { using Ty = int; }; template struct foo : public bar { using typename bar::Ty; void baz(Ty); };