Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jwakely opened this issue May 11, 2018 · 0 comments
Closed
Assignees

Comments

@jwakely
Copy link
Member

jwakely commented May 11, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants