Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
\grammarterm{conversion-function-id}\iref{class.conv.fct},
\grammarterm{operator-function-id}\iref{over.oper}, or
\grammarterm{literal-operator-id}\iref{over.literal}.
A name has
\defnadj{external}{linkage},
\defnadj{module}{linkage},
\defnadj{internal}{linkage}, or
\defnadj{no}{linkage},
as determined by the rules in \ref{basic.link}.

\pnum
Two names are \defnx{the same}{name!same} if
Expand Down Expand Up @@ -157,6 +163,12 @@
refer to the same entity in these translation units depending on the
linkage\iref{basic.link} of the name specified in each
translation unit.
\begin{note}
All declarations of an entity with a name with internal linkage
appear in the same translation unit.
All declarations of an entity with module linkage
are attached to the same module.
\end{note}

\rSec1[basic.def]{Declarations and definitions}

Expand Down Expand Up @@ -2875,6 +2887,7 @@

\pnum
\indextext{program}%
\indextext{translation unit}%
\indextext{linking}%
A \defn{program} consists of one or more translation units\iref{lex.separate}
linked together. A translation unit consists
Expand All @@ -2886,21 +2899,6 @@
\opt{global-module-fragment} module-declaration \opt{declaration-seq} \opt{private-module-fragment}
\end{bnf}

\pnum
\indextext{translation unit}%
A name has
\defnadj{external}{linkage},
\defnadj{module}{linkage},
\defnadj{internal}{linkage}, or
\defnadj{no}{linkage},
as determined by the rules below.
\begin{note}
All declarations of an entity with a name with internal linkage
appear in the same translation unit.
All declarations of an entity with module linkage
are attached to the same module.
\end{note}

\pnum
\indextext{linkage!\idxcode{static} and}%
\indextext{\idxcode{static}!linkage of}%
Expand Down