[comp.lang.c++] local class hiding global

daniel@terra.ucsc.edu (06/05/90)

Accoring to secion 9.1 of both the 2.0 and 2.1 C++ references
a local ``elaborated-type-specifier'' hides a global class
of the same name without declaring a new type.
Doesn't that imply that the following should be illegal?

struct S { int a; };		// global class

main()
{
	struct S;	// hides global class without introducing a new one
	int i = sizeof(S); // error? unknown size?
}