2 // Testcase by: bangerth@dealii.org
3 // PR c++/10858: failure with calling a method inside sizeof in a template
5 template <int> struct P {};
9 template <class T> struct X {
10 static int foo(void (*)());
11 P<sizeof(foo(&bar))> p;
14 template class X<int>;