<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<TITLE>
    CWG Issue 2266</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="2266"></A><H4>2266.
  
Has dependent type vs is type-dependent
</H4>
<B>Section: </B>13.8.3.2&#160; [<A href="https://wg21.link/temp.dep.type">temp.dep.type</A>]
 &#160;&#160;&#160;

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

 <B>Submitter: </B>Fedor Sergeev
 &#160;&#160;&#160;

 <B>Date: </B>2016-05-20<BR>


<P>[Accepted as a DR at the February, 2019 meeting.]</P>



<P>According to 13.8.3.2 [<A href="https://wg21.link/temp.dep.type#6.3.2">temp.dep.type</A>] bullet 6.3.2, one criterion
for a name being a member of an unknown specialization is if the name is
an <I>id-expression</I> denoting the member in a member access expression
and</P>

<BLOCKQUOTE>

the type of the object expression is dependent and is not the current
instantiation.

</BLOCKQUOTE>

<P>This should presumably say that the object expression is type-dependent
and not that it has a dependent type; &#8220;has a dependent type&#8221;
should be applied only to declarations, not expressions.</P>

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

<P>Change 13.8.3.2 [<A href="https://wg21.link/temp.dep.type#6.3.2">temp.dep.type</A>] bullet 6.3.2 as follows:</P>

<BLOCKQUOTE>

<P>A name is a <I>member of an unknown specialization</I>
if it is</P>

<UL>
<LI><P>...</P></LI>

<LI><P>An <I>id-expression</I> denoting the member in a class
member access expression (7.6.1.5 [<A href="https://wg21.link/expr.ref">expr.ref</A>]) in
which either</P></LI>

<UL>
<LI><P>the type of the object expression is the current
instantiation, the current instantiation has at least one
dependent base class, and name lookup of
the <I>id-expression</I> does not find a member of a class
that is the current instantiation or a non-dependent base
class thereof; or</P></LI>

<LI><P>
<DEL>the type of</DEL>
the object expression is <INS>type-</INS>dependent and is not
the current instantiation.</P></LI>

</UL>

</UL>

</BLOCKQUOTE>

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