| 1 |
// { dg-do compile } |
| 2 |
|
| 3 |
struct A |
| 4 |
{ |
| 5 |
typedef int I; |
| 6 |
}; |
| 7 |
|
| 8 |
template<typename> struct B : A {}; |
| 9 |
|
| 10 |
template<typename T> struct C : B<T> |
| 11 |
{ |
| 12 |
B<T>::A::I::I i; // { dg-error "not a class type|does not name a type|typename" "" { target c++17_down } } |
| 13 |
}; |