Skip to content

Commit c9074b5

Browse files
jensmaurerzygoloid
authored andcommitted
[expr.new] Move treatment of arrays of unknown bound
1 parent 44d9159 commit c9074b5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/expressions.tex

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4547,9 +4547,6 @@
45474547
\grammarterm{noptr-new-declarator} shall be a converted constant
45484548
expression\iref{expr.const} of type \tcode{std::size_t} and
45494549
shall evaluate to a strictly positive value.
4550-
\indextext{\idxcode{new}}%
4551-
If the \grammarterm{expression} in a \grammarterm{noptr-new-declarator}
4552-
is present, it is implicitly converted to \tcode{std::size_t}.
45534550
\begin{example}
45544551
Given the definition \tcode{int n = 42},
45554552
\tcode{new float[n][5]} is well-formed (because \tcode{n} is the
@@ -4568,9 +4565,11 @@
45684565
the \grammarterm{new-initializer}~(\ref{dcl.init.aggr}, \ref{dcl.init.string}).
45694566

45704567
\pnum
4568+
\indextext{\idxcode{new}}%
4569+
If the \grammarterm{expression} in a \grammarterm{noptr-new-declarator}
4570+
is present, it is implicitly converted to \tcode{std::size_t}.
45714571
\indextext{function!allocation}%
4572-
The \grammarterm{expression} in a \grammarterm{noptr-new-declarator} is
4573-
erroneous if:
4572+
The \grammarterm{expression} is erroneous if:
45744573

45754574
\begin{itemize}
45764575
\item

0 commit comments

Comments
 (0)