A solution to the problem as well...
typedef A::B E;
typedef E::C<int> D;