8
Statements
[stmt.stmt]
8.4
Compound statement or block
[stmt.block]
1
#
A
compound statement
(also known as a block) groups a sequence of statements into a single statement
.
compound-statement
:
{
statement-seq
o
p
t
label-seq
o
p
t
}
statement-seq
:
statement
statement-seq
statement
label-seq
:
label
label-seq
label
A label at the end of a
compound-statement
is treated as if it were followed by a null statement
.
2
#
[
Note
1
:
A compound statement defines a block scope (
[basic.
scope]
)
.
A declaration is a
statement
(
[stmt.
dcl]
)
.
—
end note
]