Skip to content

Commit 5ac7075

Browse files
committed
[basic.pre,basic.link] Clarify 'declaration of entity' vs. namespace-alias
1 parent deec10b commit 5ac7075

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

source/basic.tex

+18-3
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,16 @@
8585
The interpretation of a \grammarterm{for-range-declaration} produces
8686
one or more of the above\iref{stmt.ranged}.
8787
\end{note}
88-
An entity $E$ is denoted by the name (if any)
89-
that is introduced by a declaration of $E$ or
90-
by a \grammarterm{typedef-name} introduced by a declaration specifying $E$.
88+
An entity $E$ is denoted by
89+
\begin{itemize}
90+
\item
91+
the name (if any) that is introduced by a declaration of $E$, or
92+
\item
93+
a \grammarterm{typedef-name} introduced by a declaration specifying $E$, or
94+
\item
95+
a \grammarterm{namespace-alias} introduced by
96+
a \grammarterm{namespace-alias-definition} denoting $E$.
97+
\end{itemize}
9198

9299
\pnum
93100
A \defn{variable} is introduced by the
@@ -2680,6 +2687,14 @@
26802687
they both declare names with external linkage.
26812688
\end{itemize}
26822689
\begin{note}
2690+
An \grammarterm{alias-declaration}\iref{dcl.typedef},
2691+
a \grammarterm{using-declarator}\iref{namespace.udecl}, or
2692+
a \grammarterm{namespace-alias-definition}\iref{namespace.alias}
2693+
does not declare any entities;
2694+
a \grammarterm{typedef-name} or \grammarterm{namespace-alias}
2695+
is not an entity\iref{basic.pre}.
2696+
\end{note}
2697+
\begin{note}
26832698
There are other circumstances in which declarations declare the same entity
26842699
(\ref{dcl.link}, \ref{temp.type}, \ref{temp.spec.partial}).
26852700
\end{note}

0 commit comments

Comments
 (0)