(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
constexpr-pmf2.C
// PR c++/98551
// { dg-do compile { target c++11 } }

struct A {};
struct B { int t(); };
using pmf = decltype(&B::t);
constexpr pmf f() { return &B::t; }
constexpr A g(pmf) { return {}; };
constexpr A x = g(f());