// PR c++/109480 template struct A { void f() { A a; const bool b = a.g(); // { dg-bogus "private" } } private: bool g() const; }; template struct A;