// { dg-do compile } template void wrap() { P(); // OK, despite A::g not being accessible from here. } struct A { static void f() { wrap(); } private: static void g(); };