Skip to content

Commit 4539636

Browse files
burblebeetkoeppe
authored andcommitted
CWG2642 Inconsistent use of T and C
1 parent ce7d8b0 commit 4539636

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/basic.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,18 +1514,18 @@
15141514

15151515
\pnum
15161516
\indextext{scope!search}%
1517-
A \defn{search} in a scope $X$ for a name $N$ from a program point $P$
1518-
is a single search in $X$ for $N$ from $P$
1517+
A \defn{search} in a scope $X$ for a name $M$ from a program point $P$
1518+
is a single search in $X$ for $M$ from $P$
15191519
unless $X$ is the scope of a class or class template $T$, in which case the
15201520
following steps define the result of the search.
15211521
\begin{note}
15221522
The result differs only
1523-
if $N$ is a \grammarterm{conversion-function-id} or
1523+
if $M$ is a \grammarterm{conversion-function-id} or
15241524
if the single search would find nothing.
15251525
\end{note}
15261526

15271527
\pnum
1528-
The \defn{lookup set} for $N$ in $C$, called $S(N,C)$,
1528+
The \defn{lookup set} for a name $N$ in a class or class template $C$, called $S(N,C)$,
15291529
consists of two component sets:
15301530
the \term{declaration set}, a set of members named $N$; and
15311531
the \term{subobject set},
@@ -1550,10 +1550,10 @@
15501550
in each direct non-dependent\iref{temp.dep.type} base class subobject $B_i$, and
15511551
merge each such lookup set $S(N,B_i)$ in turn into $S(N,C)$.
15521552
\begin{note}
1553-
If $T$ is incomplete,
1553+
If $C$ is incomplete,
15541554
only base classes whose \grammarterm{base-specifier} appears before $P$
15551555
are considered.
1556-
If $T$ is an instantiated class, its base classes are not dependent.
1556+
If $C$ is an instantiated class, its base classes are not dependent.
15571557
\end{note}
15581558

15591559
\pnum
@@ -1579,9 +1579,9 @@
15791579
\end{itemize}
15801580

15811581
\pnum
1582-
The result of the search is the declaration set of $S(N,T)$.
1582+
The result of the search is the declaration set of $S(M,T)$.
15831583
If it is an invalid set, the program is ill-formed.
1584-
If it differs from the result of a search in $T$ for $N$
1584+
If it differs from the result of a search in $T$ for $M$
15851585
in a complete-class context\iref{class.mem} of $T$,
15861586
the program is ill-formed, no diagnostic required.
15871587
\begin{example}
@@ -1604,7 +1604,7 @@
16041604
\end{example}
16051605

16061606
\pnum
1607-
If $N$ is a non-dependent \grammarterm{conversion-function-id},
1607+
If $M$ is a non-dependent \grammarterm{conversion-function-id},
16081608
conversion function templates that are members of $T$ are considered.
16091609
For each such template $F$, the lookup set $S(t,T)$ is constructed,
16101610
considering a function template declaration to have the name $t$

0 commit comments

Comments
 (0)