repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
fn-ptr4.C
blob
36551ec5d7fa629345d6a4e6eaf40082351d81c1
1
// { dg-do compile }
2
3
template<void (*P)()>
4
void wrap() {
5
P(); // OK, despite A::g not being accessible from here.
6
}
7
8
struct A {
9
static void f() {
10
wrap<A::g>();
11
}
12
private:
13
static void g();
14
};