<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<TITLE>
    CWG Issue 1930</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="1930"></A><H4>1930.
  
<I>init-declarator-list</I> vs <I>member-declarator-list</I>
</H4>
<B>Section: </B>9.2.2&#160; [<A href="https://wg21.link/dcl.stc">dcl.stc</A>]
 &#160;&#160;&#160;

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

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

 <B>Date: </B>2014-05-19<BR>


<P>[Adopted at the February, 2016 meeting.]</P>



<P>According to 9.2.2 [<A href="https://wg21.link/dcl.stc#1">dcl.stc</A>] paragraph 1,</P>

<BLOCKQUOTE>

If a <I>storage-class-specifier</I> appears in a <I>decl-specifier-seq</I>,
there can be no <TT>typedef</TT> specifier in the
same <I>decl-specifier-seq</I> and the <I>init-declarator-list</I> of the
declaration shall not be empty...

</BLOCKQUOTE>

<P>This obviously should apply to <TT>mutable</TT> but does not
because <TT>mutable</TT> applies to <I>member-declarator-list</I>s,
not <I>init-declarator-list</I>s.  Similarly, in
9.2.9.2 [<A href="https://wg21.link/dcl.type.cv#1">dcl.type.cv</A>] paragraph 1,</P>

<BLOCKQUOTE>

If a <I>cv-qualifier</I> appears in a <I>decl-specifier-seq</I>,
the <I>init-declarator-list</I> of the declaration shall not be empty.

</BLOCKQUOTE>

<P>this should apply to member declarations as well.</P>

<P><B>Proposed resolution (October, 2015):</B></P>

<OL>
<LI><P>Change 9.2.2 [<A href="https://wg21.link/dcl.stc#1">dcl.stc</A>] paragraph 1 as follows:</P></LI>

<BLOCKQUOTE>

...If a <I>storage-class-specifier</I> appears in
a <I>decl-specifier-seq</I>, there can be
no <TT>typedef</TT> specifier in the
same <I>decl-specifier-seq</I> and
the <I>init-declarator-list</I> <INS>or <I>member-declarator-list</I></INS>
of the declaration shall not be empty (except for an
anonymous union declared in a named namespace or in the
global namespace, which shall be declared <TT>static</TT>
(11.5 [<A href="https://wg21.link/class.union">class.union</A>])). The <I>storage-class-specifier</I>
applies...

</BLOCKQUOTE>

<LI><P>Change 9.2.9.2 [<A href="https://wg21.link/dcl.type.cv#1">dcl.type.cv</A>] paragraph 1 as follows:</P></LI>

<BLOCKQUOTE>

...If a <I>cv-qualifier</I> appears in
a <I>decl-specifier-seq</I>, the <I>init-declarator-list</I>
<INS>or <I>member-declarator-list</I></INS> of the
declaration shall not be empty. [<I>Note:</I>...

</BLOCKQUOTE>

</OL>

<P><B>Additional note, November, 2014:</B></P>

<P>The preceding resolution, which was advanced to "tentatively
ready" status during the review session following the November,
2014 (Urbana) meeting, introduces an apparently unintentional
conflict with 11.5 [<A href="https://wg21.link/class.union#6">class.union</A>] paragraph 6 regarding
the requirements for anonymous unions in unnamed namespaces and has
been returned to "review" status to allow further discussion.</P>

<P><B>Notes from the October, 2015 meeting:</B></P>

<P>The proposed resolution was changed to address the preceding
concern.</P>

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