OSDN Git Service

* name-lookup.c (current_decl_namespace): Non-static.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / inherit / access6.C
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 }