// DR 1004 template class U = T::template B> struct A { }; template struct B { template friend struct B; }; A > a;