<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<TITLE>
    CWG Issue 2075</TITLE>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<STYLE TYPE="text/css">
  INS { text-decoration:none; font-weight:bold; background-color:#A0FFA0 }
  .INS { text-decoration:none; background-color:#D0FFD0 }
  DEL { text-decoration:line-through; background-color:#FFA0A0 }
  .DEL { text-decoration:line-through; background-color: #FFD0D0 }
  @media (prefers-color-scheme: dark) {
    HTML { background-color:#202020; color:#f0f0f0; }
    A { color:#5bc0ff; }
    A:visited { color:#c6a8ff; }
    A:hover, a:focus { color:#afd7ff; }
    INS { background-color:#033a16; color:#aff5b4; }
    .INS { background-color: #033a16; }
    DEL { background-color:#67060c; color:#ffdcd7; }
    .DEL { background-color:#67060c; }
  }
  SPAN.cmnt { font-family:Times; font-style:italic }
</STYLE>
</HEAD>
<BODY>
<P><EM>This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21
  Core Issues List revision 118b.
  See http://www.open-std.org/jtc1/sc22/wg21/ for the official
  list.</EM></P>
<P>2025-09-28</P>
<HR>
<A NAME="2075"></A><H4>2075.
  
Passing short initializer lists to array reference parameters
</H4>
<B>Section: </B>12.2.4.2.6&#160; [<A href="https://wg21.link/over.ics.list">over.ics.list</A>]
 &#160;&#160;&#160;

 <B>Status: </B>CD4
 &#160;&#160;&#160;

 <B>Submitter: </B>Richard Smith
 &#160;&#160;&#160;

 <B>Date: </B>2015-01-27<BR>


<P>[Moved to DR at the October, 2015 meeting.]</P>



<P>According to 12.2.4.2.6 [<A href="https://wg21.link/over.ics.list#5">over.ics.list</A>] paragraph 5 says,</P>

<BLOCKQUOTE>

Otherwise, if the parameter type is &#8220;array of <TT>N</TT>
<TT>X</TT>&#8221;, if the initializer list has
exactly <TT>N</TT> elements or if it has fewer than <TT>N</TT>
elements and <TT>X</TT> is default-constructible, and if all the
elements of the initializer list can be implicitly converted
to <TT>X</TT>, the implicit conversion sequence is the worst
conversion necessary to convert an element of the list to <TT>X</TT>.

</BLOCKQUOTE>

<P>There are terminological problems with this formulation.
&#8220;Default constructible&#8221; is not otherwise used in the
Standard and should instead refer to an implicit conversion
sequence from an empty <I>braced-init-list</I>.  Similarly,
&#8220;can be implicitly converted&#8221; should instead refer to the
existence of an implicit conversion sequence.</P>

<P><B>Proposed resolution, May, 2015:</B></P>

<P>Replace the indicated wording with:</P>

<BLOCKQUOTE>

Otherwise, if the parameter type is &#8220;array of <TT>N</TT>
<TT>X</TT>,&#8221; if there exists an implicit conversion sequence
for each element of the array from the corresponding element of the
initializer list (or from <TT>{}</TT> if there is no such element),
the implicit conversion sequence is the worst such implicit
conversion sequence.

</BLOCKQUOTE>

<BR><BR>
</BODY>
</HTML>
