http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263
Bug ID: 58263 Summary: [feature request] friend class $UndefinedClass Product: gcc Version: unknown Status: UNCONFIRMED Severity: trivial Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vova7890 at mail dot ru Idea is in: class MyClass1 { friend class MyClas2; // trivial stupid human issue with MyClas2 -> MyClass2 private: void help(); }; class MyClass2 { public: void need(MyClass1 *cl) { cl->help(); // error: is private!! } }; Maybe need to check, have we declaration or not. If not - got a warning about missing declaration.