6 Statements [stmt.stmt]

6.1 Labeled statement [stmt.label]

A statement can be labeled.

    attribute-specifier-seqopt identifier : statement
    attribute-specifier-seqopt case constant-expression : statement
    attribute-specifier-seqopt default : statement

The optional attribute-specifier-seq appertains to the label. An identifier label declares the identifier. The only use of an identifier label is as the target of a goto. The scope of a label is the function in which it appears. Labels shall not be redeclared within a function. A label can be used in a goto statement before its definition. Labels have their own name space and do not interfere with other identifiers.

Case labels and default labels shall occur only in switch statements.