OSDN Git Service

Restore canonical type comparison for dependent type(def)s
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / crash81.C
1 // PR c++/34485
2
3 struct A
4 {
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 };