repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-pmf3.C
blob
14daea312b7a8c23aef0d6c579611e12767dc13a
1
// PR c++/105996
2
// { dg-do compile { target c++11 } }
3
4
struct A {
5
void CB() {}
6
};
7
struct B : public A { };
8
9
using APMF = void (A::*)();
10
using BPMF = void (B::*)();
11
12
constexpr APMF foo () { return &A::CB; };
13
static constexpr BPMF b = foo();