// PR c++/33959 template struct A { struct C { template struct D {}; }; template static C::D bar (S const &); }; struct E {}; int main () { E e; A::bar (e); }