Path: utzoo!utgpu!watserv1!watmath!att!rutgers!tut.cis.ohio-state.edu!ucbvax!agate!darkstar!terra.ucsc.edu!daniel From: daniel@terra.ucsc.edu Newsgroups: comp.lang.c++ Subject: local class hiding global Message-ID: <4051@darkstar.ucsc.edu> Date: 4 Jun 90 20:45:29 GMT Sender: usenet@darkstar.ucsc.edu Reply-To: daniel@terra.ucsc.edu () Organization: University of California, Santa Cruz Lines: 12 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? }