This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [wwwdocs PATCH] Document friend changes in gcc-4.0/changes.html


Kriang Lerdsuwanakij wrote:
Mark Mitchell wrote:


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 containing namespace."

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,
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."?


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]