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
PR testsuite/86649
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
defarg2.C
blob
d8ecb2fa777e3c44f5cefe21b6cb38f4cdec797b
1
// PR c++/37971
2
// { dg-do compile }
3
4
class C {
5
private:
6
static int f(int);
7
static int f(char);
8
9
public:
10
static void g(int (*)(int) = f);
11
};
12
13
void h() {
14
/* Although C::f is inaccessible here, it is accessible in the
15
context of C::g, so there is no error. */
16
C::g();
17
}