| 1 |
// PR c++/28588 |
| 2 |
|
| 3 |
class Foo { |
| 4 |
static void f(); // { dg-message "private" } |
| 5 |
static void f(int); |
| 6 |
static void g(); // { dg-message "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 |
} |