Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-pmf2.C

raw
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);
7 constexpr pmf f() { return &B::t; }
8 constexpr A g(pmf) { return {}; };
9 constexpr A x = g(f());