blob: 60cd5e3f44e41b711dbad8f4ceaa3a56acf18c2f [file] [log] [blame]
// { dg-do assemble }
// Origin: Mark Mitchell <mark@codesourcery.com>
template <class T>
struct S {
typedef typename T::Y<T>::Z X; // { dg-error "not a class template" } No Y in A
X x;
};
struct A {
struct Y {
typedef A Z;
};
};
template struct S<A>;