Skip to content

Commit c35c5e3

Browse files
jensmaurerzygoloid
authored andcommitted
[dcl.array] Clarify that an array bound is deduced in an explicit type conversion
1 parent 703381d commit c35c5e3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/declarators.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,10 +1065,11 @@
10651065
parameter\iref{dcl.fct}.
10661066
An array bound may also be omitted
10671067
when the declarator is followed by an
1068-
\grammarterm{initializer}\iref{dcl.init} or
1068+
\grammarterm{initializer}\iref{dcl.init},
10691069
when a declarator for a static data member is followed by a
1070-
\grammarterm{brace-or-equal-initializer}\iref{class.mem}.
1071-
In both cases the bound is calculated from the number
1070+
\grammarterm{brace-or-equal-initializer}\iref{class.mem},
1071+
or in an explicit type conversion\iref{expr.type.conv}.
1072+
In these cases, the bound is calculated from the number
10721073
\indextext{array size!default}%
10731074
of initial elements (say,
10741075
\tcode{N})

0 commit comments

Comments
 (0)