Skip to content

Commit b73e56f

Browse files
jensmaurerzygoloid
authored andcommitted
[basic.link] Entities declared in an unnamed namespace
never have external linkage.
1 parent fc16d31 commit b73e56f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/basic.tex

+4-4
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,10 @@
24492449
\indextext{linkage!no}%
24502450
Names not covered by these rules have no linkage. Moreover, except as
24512451
noted, a name declared at block scope\iref{basic.scope.block} has no
2452-
linkage. A type is said to have linkage if and only if:
2452+
linkage.
2453+
2454+
\pnum
2455+
A type is said to have linkage if and only if:
24532456
\begin{itemize}
24542457
\item it is a class or enumeration type that is named (or has a name for
24552458
linkage purposes\iref{dcl.typedef}) and the name has linkage; or
@@ -2475,9 +2478,6 @@
24752478
\begin{itemize}
24762479
\item the entity has C language linkage\iref{dcl.link}, or
24772480

2478-
\item the entity is declared within an unnamed
2479-
namespace\iref{namespace.def}, or
2480-
24812481
\item the entity is not odr-used\iref{basic.def.odr} or is defined in
24822482
the same translation unit.
24832483
\end{itemize}

0 commit comments

Comments
 (0)