blob: 7bfbe487f9e39998dd96e58f6883340eaa2e4cfd [file] [log] [blame]
// { dg-do assemble }
// PRMS Id: 8518
// Bug: Call to foo is not checked for accessibility
class A
{
private:
static void foo() {} // { dg-message "" }
public:
void goo() {}
};
struct B : public A
{
void func() { foo(); } // { dg-error "" }
};
int main()
{
B b;
b.func();
}