| 1 |
// PR c++/11471 |
| 2 |
// Origin: <[email protected]> |
| 3 |
// { dg-do compile } |
| 4 |
|
| 5 |
template<typename T> struct A |
| 6 |
{ |
| 7 |
typedef typename T::X X; |
| 8 |
}; |
| 9 |
|
| 10 |
template<typename T> A<T>::X::X() {} // { dg-error "expected|no type|invalid use|not a type|dependent" } |