// PR c++/118104 // { dg-do compile { target c++11 } } template struct Z { }; template struct X { template using W = Z; template using Y = X; }; template using foo = X::W; template using bar = X::Y; void g () { foo f; bar b; }