1 // PR c++/12288
2 
3 class X {};
4 
5 struct S {
SS6   explicit S (const X::T&) {}  // { dg-error "does not name a type" }
7 };
8 
9 class Y {};
10 
11 typedef Y::T xt;               // { dg-error "does not name a type" }
12