// { dg-do assemble }// GROUPS passed visibility// Make sure private inheritance affects the visibility of// static members used in an inherited context.classfoo{public:staticinty;// { dg-error "" } private};classfoo1:privatefoo{};classfoo2:publicfoo1{public:voidbar(){y;}// { dg-error "" } .*};