// { dg-do compile }// Testcase by: bangerth@dealii.org// PR c++/10858: failure with calling a method inside sizeof in a templatetemplate<int>structP{};voidbar();template<classT>structX{staticintfoo(void(*)());P<sizeof(foo(&bar))>p;};templateclassX<int>;