// PR c++/37971// { dg-do compile }classC{private:staticintf(int);// { dg-error "private" }staticintf(char);};classD{public:/* C::f is inaccessible, so this is an error, even if this function is never called. */staticvoidg(int(*)(int)=C::f);// { dg-error "context" }};