// PR c++/52126 // { dg-do compile } template struct A { int foo; struct B; struct C; struct D; struct E; }; template struct A::B : A { using A::foo; }; template struct A::C : A { using A::foo; }; template struct A::D : A { using A::foo; }; template struct A::E : A { using A::foo; };