Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash81.C
blob849470a5e88ef47833bb943931c1202da6b59668
1 // PR c++/34485
3 struct A
5   template<T::X> struct X; // { dg-error "'T' has not been declared" "T" }
6   // { dg-error "declaration of 'template<int X> struct A::X'" "A::X" { target *-*-* } 5 }
7   // { dg-error "shadows template parm 'int X'" "shadow" { target *-*-* } 5 }
8 };