[comp.std.c++] Scopes and Friend declarations

daniel@terra.ucsc.edu (Daniel Edelson) (08/07/90)

From the ARM, section 3.2, Scopes

	``A name first declared by a friend declaration 
	belongs to the global scope.''

From the ARM, section 11.4, Friends

	``If a class or function mentioned as a friend has not 
	been declared its name is entered in the same scope 
	as the name of the class containing the declaration.''

Clearly these conflict, particularly in the presense of local and
nested classes. Is anyone at AT&T willing to bless rule or the other?

Daniel Edelson
daniel@cis.ucsc.edu