<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<TITLE>
    CWG Issue 41</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="41"></A><H4>41.
  
Clarification of lookup of names after declarator-id
</H4>
<B>Section: </B>6.5.3&#160; [<A href="https://wg21.link/basic.lookup.unqual">basic.lookup.unqual</A>]
 &#160;&#160;&#160;

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

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

 <B>Date: </B>1 Sep 1998<BR>





<P>Footnotes 26 and 29 both use the phrase "following the function declarator"
incorrectly: the function declarator includes the parameter list, but the
footnotes make clear that they intend what's said to apply to names inside
the parameter list. Presumably the phrase should be "following the function
<I>declarator-id</I>."</P>

<P>
<B>Proposed Resolution (04/99):</B>
Change the text in 6.5.3 [<A href="https://wg21.link/basic.lookup.unqual">basic.lookup.unqual</A>]

paragraph 6 from:</P>
<BLOCKQUOTE>A name used in the definition of a function [<I>footnote:</I> This
refers to unqualified names following the function declarator; such a name
may be used as a type or as a default argument name in the
<I>parameter-declaration-clause</I>,
or may be used in the function body. <I>end footnote</I>] that is ...</BLOCKQUOTE>
to:
<BLOCKQUOTE>A name used in the definition of a function following the function's
<I>declarator-id [footnote:</I>
This refers to unqualified names that occur, for instance, in a type or
default argument expression in the <I>parameter-declaration-clause</I>
or used in the function body. <I>end footnote</I>] that is ...</BLOCKQUOTE>
Change the text in 6.5.3 [<A href="https://wg21.link/basic.lookup.unqual#8">basic.lookup.unqual</A>] paragraph 8
from:
<BLOCKQUOTE>A name used in the definition of a function that is a member
function (11.4.2 [<A href="https://wg21.link/class.mfct">class.mfct</A>]
)
[<I>footnote:</I> That is, an unqualified name following the function
declarator; such a name may be used as a type or as a default argument
name in the <I>parameter-declaration-clause</I>, or may be used in the function
body, or, if the function is a constructor, may be used in the expression
of a <I>mem-initializer</I>. <I>end footnote</I>] of class <TT>X</TT> shall be ...</BLOCKQUOTE>
to:
<BLOCKQUOTE>A name used in the definition of a member function
(11.4.2 [<A href="https://wg21.link/class.mfct">class.mfct</A>]
) of
class <TT>X</TT> following the function's <I>declarator-id</I>
[<I>footnote:</I>
That is, an unqualified name that occurs, for instance, in a type or default
argument expression in the <I>parameter-declaration-clause</I>, in the
function body, or in an expression of a <I>mem-initializer</I> in a constructor
definition.
<I>end footnote</I>] shall be ...</BLOCKQUOTE>
<BR><BR>
</BODY>
</HTML>
