This is the mail archive of the
mailing list for the GCC project.
Re: [wwwdocs PATCH] Document friend changes in gcc-4.0/changes.html
Kriang Lerdsuwanakij wrote:
Mark Mitchell wrote:
This part is still not in GCC yet. The work so far makes friend class
lookup in the right scope. Undeclared friend classes are still visible,
Yes, except that I would word:
! <li>Friend classes that are not qualified with their scope are no
! longer looked up outside the innermost non-class scope as given
! in the standard:
slightly differently. In particular, I would say "Undeclared friend
classes given by an unqualified name are no longer injected into the
and hence the text I chose in changes.html.
OK; I did not intend to change the meaning. But, I do not find your
wording clear. How about "When declaring a friend class using an
unqualified name, if name-lookup does not find the friend class, the
friend declaration is considered to be a forward declaration of a member
class, rather than a class in the containing namespace."?