<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<TITLE>
    CWG Issue 1292</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="1292"></A><H4>1292.
  
Dependent calls with <I>braced-init-list</I>s containing a pack expansion
</H4>
<B>Section: </B>13.8.3&#160; [<A href="https://wg21.link/temp.dep">temp.dep</A>]
 &#160;&#160;&#160;

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

 <B>Submitter: </B>James Widman
 &#160;&#160;&#160;

 <B>Date: </B>2011-04-10<BR>


<P>[Moved to DR at the November, 2014 meeting.]</P>

<P>The discussion of <A HREF="1233.html">issue 1233</A> revealed
that the dependency of function calls involving a
<I>braced-init-list</I> containing a pack expansion is not adequately
addressed by the existing wording.</P>

<P><B>Proposed resolution (February, 2014):</B></P>

<OL>
<LI><P>Change 13.8.3 [<A href="https://wg21.link/temp.dep#1">temp.dep</A>] paragraph 1 as follows:</P></LI>

<BLOCKQUOTE>

<P>...In an expression of the form:</P>

<UL>
<I>postfix-expression</I> <TT>(</TT> <I>expression-list<SUB>opt</SUB></I> <TT>)</TT>
</UL>

<P>where the <I>postfix-expression</I> is an <I>unqualified-id</I>,
the <I>unqualified-id</I> denotes a <I>dependent name</I> if</P>

<UL>
<LI><P>any of the expressions  in the <I>expression-list</I> is a pack
expansion (13.7.4 [<A href="https://wg21.link/temp.variadic">temp.variadic</A>]),</P></LI>

<LI><P>any of the expressions <INS>or <I>braced-init-list</I>s</INS> in
the <I>expression-list</I> is <DEL>a</DEL>
type-dependent <DEL>expression</DEL> (13.8.3.3 [<A href="https://wg21.link/temp.dep.expr">temp.dep.expr</A>]),
or</P></LI>

<LI><P>if the <I>unqualified-id</I> is...</P></LI>

</UL>

</BLOCKQUOTE>

<LI><P>Add the following as a new paragraph at the end of
13.8.3.3 [<A href="https://wg21.link/temp.dep.expr">temp.dep.expr</A>]:</P></LI>

<BLOCKQUOTE>

<P>A class member access expression (7.6.1.5 [<A href="https://wg21.link/expr.ref">expr.ref</A>]) is
type-dependent if...</P>

<P><INS>A <I>braced-init-list</I> is type-dependent if any element is
type-dependent or is a pack expansion.</INS></P>

</BLOCKQUOTE>

</OL>

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