------- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-10 23:39 ------- namespace foo { namespace bar { class A { public: friend class B;
That "class B" is really "class foo::bar::B". This is all mentioned on the 4.0 changes page: http://gcc.gnu.org/gcc-4.0/changes.html The error message is correct as foo::B is not a friend of foo::bar::A. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28332