This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/28332] friend classes require explicit qualification when in twin nested namespaces



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]