This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36163] Friend declaration confused by namespace/using
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2009 12:15:58 -0000
- Subject: [Bug c++/36163] Friend declaration confused by namespace/using
- References: <bug-36163-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from redi at gcc dot gnu dot org 2009-10-30 12:15 -------
(In reply to comment #3)
> I think it is a bug, because the class test is declared at the scope ::
A friend declaration specifies a class that belongs to the innermost enclosing
namespace scope, outer scopes are not considered.
This is not a bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36163