c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-pmf3.C
blob14daea312b7a8c23aef0d6c579611e12767dc13a
1 // PR c++/105996
2 // { dg-do compile { target c++11 } }
4 struct A {
5   void CB() {}
6 };
7 struct B : public A { };
9 using APMF = void (A::*)();
10 using BPMF = void (B::*)();
12 constexpr APMF foo () { return &A::CB; };
13 static constexpr BPMF b = foo();