1 // PR c++/98551
2 // { dg-do compile { target c++11 } }
3 
4 struct A {};
5 struct B { int t(); };
6 using pmf = decltype(&B::t);
f()7 constexpr pmf f() { return &B::t; }
g(pmf)8 constexpr A g(pmf) { return {}; };
9 constexpr A x = g(f());
10