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

Mark Mitchell mark@codesourcery.com
Fri Dec 3 02:35:00 GMT 2004


Kriang Lerdsuwanakij wrote:
> Mark Mitchell wrote:
> 
>>
>> 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."?
>>
>>
> Hmm, the entry is about where to do name-lookup for an existing name,
> not where to put an undeclared name.  So I am proposing this version:
> 
> "When declaring a friend class using an unqualified name, classes 
> outside the innermost non-class scope are not searched."

Yes, that sounds good.

Thanks,

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



More information about the Gcc-patches mailing list