template struct A { int n; }; template struct B { typedef A C; };