llvm/clang/test/SemaTemplate/PR25708.cpp

// RUN: %clang_cc1 -std=c++11 -verify %s
// expected-no-diagnostics

struct FooAccessor
{
    template <typename T>
    using Foo = typename T::Foo;
};

class Type
{
    friend struct FooAccessor;

    using Foo = int;
};

int main()
{
    FooAccessor::Foo<Type> t;
}