<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<TITLE>
    CWG Issue 2330</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="2330"></A><H4>2330.
  
Missing references to variable templates
</H4>
<B>Section: </B>13.9&#160; [<A href="https://wg21.link/temp.spec">temp.spec</A>]
 &#160;&#160;&#160;

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

 <B>Submitter: </B>Daveed Vandevoorde
 &#160;&#160;&#160;

 <B>Date: </B>2016-12-06<BR>


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

<P>Presumably paragraphs 1-3 of 13.9 [<A href="https://wg21.link/temp.spec">temp.spec</A>] are
intended to apply to variable templates, but the term does not
appear in the current wording of these paragraphs.</P>

<P><B>Proposed resolution (November, 2018):</B></P>

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

<BLOCKQUOTE>

The act of instantiating a function, <INS>a variable,</INS>
a class, a member of a class template or a member template
is referred to as template instantiation.

</BLOCKQUOTE>

<LI><P>Change 13.9 [<A href="https://wg21.link/temp.spec">temp.spec</A>] paragraphs 3 and r as
follows:</P></LI>

<BLOCKQUOTE>

<P>An explicit specialization may be declared for a function
template, <INS>a variable template,</INS> a class template,
a member of a class template or a member template. An
explicit specialization declaration is introduced by
template&lt;&gt; . In an explicit specialization declaration
for <INS>a variable template,</INS> a class template, a
member of a class template or a class member template, the
name of the <INS>the variable or</INS> class that is
explicitly specialized shall be
a <I>simple-template-id</I>. In the explicit specialization
declaration for a function template or a member function
template, the name of the function or member function
explicitly specialized may be
a <I>template-id</I>. [<I>Example:</I>...</P>

<P>An instantiated template specialization can be either
implicitly instantiated (13.9.2 [<A href="https://wg21.link/temp.inst">temp.inst</A>]) for a
given argument list or be explicitly instantiated
(13.9.3 [<A href="https://wg21.link/temp.explicit">temp.explicit</A>]). A specialization is a class,
<INS>variable,</INS> function, or class member that is
either instantiated or explicitly specialized
(13.9.4 [<A href="https://wg21.link/temp.expl.spec">temp.expl.spec</A>]).</P>

</BLOCKQUOTE>

</OL>

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