☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-pmf2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-pmf2.C
code
plain
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());