// Issue #2085. template struct Foo; template struct Bar {}; template struct Bar { using BarDependent = typename Foo::Dependent; void method(const BarDependent &); }; template void Bar::method(const BarDependent &) {}