This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28332] friend classes require explicit qualification when in twin nested namespaces
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2006 23:39:46 -0000
- Subject: [Bug c++/28332] friend classes require explicit qualification when in twin nested namespaces
- References: <bug-28332-12930@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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