[Bug c++/37804] friend declaration leaks into global scope at template instantiation

jason at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jan 15 23:07:00 GMT 2009



------- Comment #5 from jason at gcc dot gnu dot org  2009-01-15 23:07 -------
7.3.1.2: If a friend declaration in a non-local class first declares a class or
function the friend class or function is a member of the innermost enclosing
namespace. The name of the friend is not found by unqualified lookup (3.4.1) or
by qualified lookup (3.4.3) until a matching declaration is provided in that
namespace scope (either before or after the class definition granting
friendship).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804



More information about the Gcc-bugs mailing list