[Bug c++/36163] Friend declaration confused by namespace/using
redi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 30 12:16:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list