Previous Table of Contents "New C Standard" commentary
438 If more than one declaration of a particular identifier is visible at any point in a translation unit, the syntactic context disambiguates uses that refer to different entities.
439 Thus, there are separate name spaces for various categories of identifiers, as follows:
440 label names (disambiguated by the syntax of the label declaration and use);
the tags of structures, unions, and enumerations
(disambiguated by following any24) of the keywords
442 the members of structures or unions;
each structure or union has a separate name space for its members
(disambiguated by the type of the expression used to access the
member via the
444 all other identifiers, called ordinary identifiers (declared in ordinary declarators or as enumeration constants).
enumeration specifiers (22.214.171.124), labeled statements (6.8.1),
structure and union specifiers (126.96.36.199), structure and union members
(188.8.131.52), tags (184.108.40.206), the
446 23) As specified in 6.2.1, the later declaration might hide the prior declaration.
447 24) There is only one name space for tags even though three are possible.
Created at: 2008-01-30 02:39:40
The text from WG14/N1256 is copyright © ISO
Created at: 2008-01-30 02:39:40 The text from WG14/N1256 is copyright © ISO