Skip to content

Commit 3807e0c

Browse files
committed
[basic.pre,basic.link] Clarify 'declaration of entity' vs. namespace-alias
1 parent b652db7 commit 3807e0c

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

source/basic.tex

Lines changed: 19 additions & 4 deletions
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
@@ -2716,7 +2723,15 @@
27162723
they both declare names with external linkage.
27172724
\end{itemize}
27182725
\begin{note}
2719-
There are other circumstances in which declarations declare the same entity%
2726+
An \grammarterm{alias-declaration}\iref{dcl.typedef},
2727+
a \grammarterm{using-declarator}\iref{namespace.udecl}, or
2728+
a \grammarterm{namespace-alias-definition}\iref{namespace.alias}
2729+
does not declare any entities;
2730+
a \grammarterm{typedef-name} or \grammarterm{namespace-alias}
2731+
is not an entity\iref{basic.pre}.
2732+
\end{note}
2733+
\begin{note}
2734+
There are other circumstances in which declarations declare the same entity
27202735
\iref{dcl.link,temp.type,temp.spec.partial}.
27212736
\end{note}
27222737

0 commit comments

Comments
 (0)