File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 35
35
\indextext {\idxgram {condition}{s}!rules for}%
36
36
The rules for \grammarterm {condition}{s} apply both to
37
37
\grammarterm {selection-statement}{s} and to the \tcode {for} and \tcode {while}
38
- statements\iref {stmt.iter }. The \grammarterm {declarator} shall not
38
+ statements\iref {stmt.iter }.
39
+ A \grammarterm {condition} that is not an \grammarterm {expression} is a
40
+ declaration\iref {dcl.dcl }.
41
+ The \grammarterm {declarator} shall not
39
42
specify a function or an array. The \grammarterm {decl-specifier-seq} shall not
40
43
define a class or enumeration. If the \tcode {auto} \grammarterm {type-specifier} appears in
41
44
the \grammarterm {decl-specifier-seq},
898
901
\indextext {initialization!jump past}%
899
902
\indextext {\idxcode {goto}!initialization and}%
900
903
It is possible to transfer into a block, but not in a way that bypasses
901
- declarations with initialization. A program that jumps\footnote {The transfer from the condition of a \tcode {switch} statement to a
904
+ declarations with initialization (including ones in \grammarterm {condition}s
905
+ and \grammarterm {init-statement}s).
906
+ A program that jumps\footnote {The transfer from the condition of a \tcode {switch} statement to a
902
907
\tcode {case} label is considered a jump in this respect.}
903
908
from a point where a variable with automatic storage duration is
904
909
not in scope to a point where it is in scope is ill-formed unless the
You can’t perform that action at this time.
0 commit comments