| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
|
| 3 |
struct GrandParent { |
| 4 |
void *get(); |
| 5 |
}; |
| 6 |
|
| 7 |
template<class OBJ> |
| 8 |
struct Parent : public GrandParent{ |
| 9 |
}; |
| 10 |
|
| 11 |
template<typename T> |
| 12 |
struct Child : public Parent<T> { |
| 13 |
using GrandParent::get; |
| 14 |
void Foo() { |
| 15 |
void* ex = get(); |
| 16 |
} |
| 17 |
}; |