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 c++/28588
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
access6.C
blob
7645c2d5e0db6752e663489197e83e6e94c8f210
1
// PR c++/28588
2
3
class Foo {
4
static void f(); // { dg-error "private" }
5
static void f(int);
6
static void g(); // { dg-error "private" }
7
};
8
9
void h()
10
{
11
Foo foo;
12
void (*f)();
13
f = foo.f; // { dg-error "context" }
14
f = foo.g; // { dg-error "context" }
15
}