Skip to content

Commit 74e2a4c

Browse files
committed
[expr.new] Move treatment of arrays of unknown bound
1 parent ea6f8a8 commit 74e2a4c

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
@@ -4521,9 +4521,6 @@
45214521
\grammarterm{noptr-new-declarator} shall be a converted constant
45224522
expression\iref{expr.const} of type \tcode{std::size_t} and
45234523
shall evaluate to a strictly positive value.
4524-
\indextext{\idxcode{new}}%
4525-
If the \grammarterm{expression} in a \grammarterm{noptr-new-declarator}
4526-
is present, it is implicitly converted to \tcode{std::size_t}.
45274524
\begin{example}
45284525
Given the definition \tcode{int n = 42},
45294526
\tcode{new float[n][5]} is well-formed (because \tcode{n} is the
@@ -4542,9 +4539,11 @@
45424539
the \grammarterm{new-initializer}~(\ref{dcl.init.aggr}, \ref{dcl.init.string}).
45434540

45444541
\pnum
4542+
\indextext{\idxcode{new}}%
4543+
If the \grammarterm{expression} in a \grammarterm{noptr-new-declarator}
4544+
is present, it is implicitly converted to \tcode{std::size_t}.
45454545
\indextext{function!allocation}%
4546-
The \grammarterm{expression} in a \grammarterm{noptr-new-declarator} is
4547-
erroneous if:
4546+
The \grammarterm{expression} is erroneous if:
45484547

45494548
\begin{itemize}
45504549
\item

0 commit comments

Comments
 (0)