// PR c++/47721 // { dg-do compile { target c++11 } } // template type parameter friend: template class Q { static const int I = 2; public: friend W; }; struct B { int ar[Q::I]; }; // bonus template template parameter friend: template struct A; template