Skip to content

[dcl.init.general],[dcl.init.list],[over.ics.list] Array of characters isn't defined #6490

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4611,12 +4611,9 @@
\item
If the destination type is a reference type, see~\ref{dcl.init.ref}.
\item
If the destination type is an array of characters,
an array of \keyword{char8_t},
an array of \keyword{char16_t},
an array of \keyword{char32_t},
or an array of
\keyword{wchar_t},
If the destination type
is an array of ordinary character type\iref{basic.fundamental}
or an array of character type,
and the initializer is a \grammarterm{string-literal}, see~\ref{dcl.init.string}.
\item If the initializer is \tcode{()}, the object is value-initialized.
\indextext{ambiguity!function declaration}%
Expand Down Expand Up @@ -5834,7 +5831,10 @@
copy-list-initialization, or by direct-initialization for
direct-list-initialization).

\item Otherwise, if \tcode{T} is a character array and the initializer list has a
\item Otherwise, if \tcode{T}
is an array of ordinary character type\iref{basic.fundamental}
or an array of character type,
and the initializer list has a
single element that is an appropriately-typed \grammarterm{string-literal}\iref{dcl.init.string},
initialization is performed as described in that subclause.

Expand Down
4 changes: 3 additions & 1 deletion source/overloading.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2398,7 +2398,9 @@
required to convert the element to the parameter type.

\pnum
Otherwise, if the parameter type is a character array
Otherwise, if the parameter type
is an array of ordinary character type\iref{basic.fundamental}
or an array of character type,
\begin{footnote}
Since there are no parameters of array type,
this will only occur as the referenced type of a reference parameter.
Expand Down