Skip to content

[expr.new] p18 Weird index entries for initialization in new-expression #2068

@jwakely

Description

@jwakely

Most of these index entries aren't mentioned in the text and don't seem related to it at all:

\pnum
\indextext{\idxcode{new}!array of class objects and}%
\indextext{\idxcode{new}!initialization and}%
\indextext{\idxcode{new}!constructor and}%
\indextext{\idxcode{new}!default constructor and}%
\indextext{default constructor|see{constructor, default}}%
\indextext{trivial type}%
\indextext{trivial class type}%
A \grammarterm{new-expression} that creates an object of type \tcode{T}
initializes that object as follows:

\begin{itemize}
\item If the \grammarterm{new-initializer} is omitted, the object is
default-initialized\iref{dcl.init}. \begin{note} If no initialization
is performed, the object has an indeterminate value. \end{note}

\item Otherwise, the \grammarterm{new-initializer} is interpreted according to
the initialization rules of~\ref{dcl.init} for direct-initialization.
\end{itemize}

This paragraph isn't directly talking about arrays of class objects and new, nor constructors and new, nor default constructors and new but I can see the relevance. However it's not talking about default constructors outside of the context of a new-expression, nor trivial types nor trivial class types. The last three index entries seem completely out of place.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions