------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-11 18:56 -------
You did not read the changes page:
http://gcc.gnu.org/gcc-4.0/changes.html

When declaring a friend class using an unqualified name, classes outside the
innermost non-class scope are not searched: 
class A;
namespace N {
  class B {
    friend class A;   // Refer to N::A which has not been declared yet
                      // because name outside namespace N are not searched
    friend class ::A; // Refer to ::A
  };
}
Hiding the friend name until declaration is still not implemented. 



This is how C++ is defined.


-- 

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=27123

Reply via email to