<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<TITLE>
    CWG Issue 122</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="122"></A><H4>122.
  
<I>template-id</I>s as <I>unqualified-id</I>s
</H4>
<B>Section: </B>_N4567_.5.1.1&#160; [<A href="https://wg21.link/expr.prim.general">expr.prim.general</A>]
 &#160;&#160;&#160;

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

 <B>Submitter: </B>Mike Miller
 &#160;&#160;&#160;

 <B>Date: </B>3 June 1999<BR>



<P>[Moved to DR at 10/01 meeting.]</P>



<P>_N4567_.5.1.1 [<A href="https://wg21.link/expr.prim.general#11">expr.prim.general</A>] paragraph 11
reads,</P>

<BLOCKQUOTE>
A <I>template-id</I> shall be used as an <I>unqualified-id</I> only
as specified in
13.9.3 [<A href="https://wg21.link/temp.explicit">temp.explicit</A>]
,
13.9 [<A href="https://wg21.link/temp.spec">temp.spec</A>]
, and
13.7.6 [<A href="https://wg21.link/temp.spec.partial">temp.spec.partial</A>]
.
</BLOCKQUOTE>

<P>What uses of <I>template-id</I>s
as <I>unqualified-id</I>s is this supposed to prevent?  And is the
list of referenced sections correct/complete?  For instance,
what about 13.10.2 [<A href="https://wg21.link/temp.arg.explicit">temp.arg.explicit</A>],
"Explicit template argument specification?"
Does its absence from the list in
_N4567_.5.1.1 [<A href="https://wg21.link/expr.prim.general">expr.prim.general</A>] paragraph 11 mean that
"<TT>f&lt;int&gt;()</TT>" is ill-formed?</P>

<P>This is even more confusing when you recall that <I>unqualified-id</I>s
are contained in <I>qualified-id</I>s:</P>

<BLOCKQUOTE>
    <I>qualified-id</I>:
        <TT>::</TT><SUB>opt</SUB>&#160;<I>nested-name-specifier</I>&#160;<TT>template</TT><SUB>opt</SUB>&#160;<I>unqualified-id</I>
</BLOCKQUOTE>

<P>Is the wording intending to say "used as an <I>unqualified-id</I>
that is not part of a <I>qualified-id</I>?"  Or something else?</P>

<P><B>Proposed resolution (10/00):</B></P>

<P>Remove the referenced sentence altogether.</P>

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