aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/PR25708.cpp
blob: 6a214fc6b43bc1d285c453b2b5cfb793983b98d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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;
}