blob: a76e712afe1ba5ac9d28d0bbe89eefa5c317604b [file] [log] [blame]
// 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());