// { dg-do compile } // Testcase by: bangerth@dealii.org // PR c++/10858: failure with calling a method inside sizeof in a template template struct P {}; void bar (); template struct X { static int foo(void (*)()); P p; }; template class X;