| 1 |
// RUN: %clang_cc1 -std=c++11 -verify %s |
| 2 |
// expected-no-diagnostics |
| 3 |
|
| 4 |
struct FooAccessor |
| 5 |
{ |
| 6 |
template <typename T> |
| 7 |
using Foo = typename T::Foo; |
| 8 |
}; |
| 9 |
|
| 10 |
class Type |
| 11 |
{ |
| 12 |
friend struct FooAccessor; |
| 13 |
|
| 14 |
using Foo = int; |
| 15 |
}; |
| 16 |
|
| 17 |
int main() |
| 18 |
{ |
| 19 |
FooAccessor::Foo<Type> t; |
| 20 |
} |