collect_spec Production

Definition

enum_spec : enum identifier
          | enum { enum_list }

Purpose

An enum_spec specifies an enumeration type. It can either give a predefined enumeration type, or an anonymous type.

Semantics

Declarations in anonymous collections may not conflict with declarations in the current scope.