|
1514 | 1514 |
|
1515 | 1515 | \pnum
|
1516 | 1516 | \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$ |
1519 | 1519 | unless $X$ is the scope of a class or class template $T$, in which case the
|
1520 | 1520 | following steps define the result of the search.
|
1521 | 1521 | \begin{note}
|
1522 | 1522 | The result differs only
|
1523 |
| -if $N$ is a \grammarterm{conversion-function-id} or |
| 1523 | +if $M$ is a \grammarterm{conversion-function-id} or |
1524 | 1524 | if the single search would find nothing.
|
1525 | 1525 | \end{note}
|
1526 | 1526 |
|
1527 | 1527 | \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)$, |
1529 | 1529 | consists of two component sets:
|
1530 | 1530 | the \term{declaration set}, a set of members named $N$; and
|
1531 | 1531 | the \term{subobject set},
|
|
1550 | 1550 | in each direct non-dependent\iref{temp.dep.type} base class subobject $B_i$, and
|
1551 | 1551 | merge each such lookup set $S(N,B_i)$ in turn into $S(N,C)$.
|
1552 | 1552 | \begin{note}
|
1553 |
| -If $T$ is incomplete, |
| 1553 | +If $C$ is incomplete, |
1554 | 1554 | only base classes whose \grammarterm{base-specifier} appears before $P$
|
1555 | 1555 | 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. |
1557 | 1557 | \end{note}
|
1558 | 1558 |
|
1559 | 1559 | \pnum
|
|
1579 | 1579 | \end{itemize}
|
1580 | 1580 |
|
1581 | 1581 | \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)$. |
1583 | 1583 | 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$ |
1585 | 1585 | in a complete-class context\iref{class.mem} of $T$,
|
1586 | 1586 | the program is ill-formed, no diagnostic required.
|
1587 | 1587 | \begin{example}
|
|
1604 | 1604 | \end{example}
|
1605 | 1605 |
|
1606 | 1606 | \pnum
|
1607 |
| -If $N$ is a non-dependent \grammarterm{conversion-function-id}, |
| 1607 | +If $M$ is a non-dependent \grammarterm{conversion-function-id}, |
1608 | 1608 | conversion function templates that are members of $T$ are considered.
|
1609 | 1609 | For each such template $F$, the lookup set $S(t,T)$ is constructed,
|
1610 | 1610 | considering a function template declaration to have the name $t$
|
|
0 commit comments