collect_spec Production

Definition

collect_spec : struct identifier
             | struct { decl_list }
             | union identifier
             | union { decl_list }
             | exception identifier

Purpose

A collect_spec specifies a collection type. It can either give a predefined collection type, or an anonymous type. Anonymous structures are compatible with any structure that exactly matches their fields by name and type.

Semantics

Declarations in anonymous collections are subject to the same rules as those in named collections