Skip to content

Commit 8a8017c

Browse files
committed
[dcl.init, dcl.stc] Move specification as to where extern is allowed into [dcl.stc]
1 parent d34fb9a commit 8a8017c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

source/declarations.tex

+2-5
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@
406406
\indextext{restriction!\idxcode{extern}}%
407407
The \tcode{extern} specifier shall be applied only to the declaration of a variable
408408
or function. The \tcode{extern} specifier shall not be used in the
409-
declaration of a class member or function parameter.
409+
declaration of a class member, function parameter, or block-scope variable with
410+
an \grammarterm{initializer}.
410411
\indextext{\idxcode{extern}!linkage of}%
411412
\indextext{consistency!linkage}%
412413
For the linkage of a name declared with an \tcode{extern} specifier,
@@ -4135,10 +4136,6 @@
41354136
and~\ref{stmt.dcl}.
41364137
\end{note}
41374138

4138-
\pnum
4139-
A declaration of a block-scope variable with external or internal
4140-
linkage that has an \grammarterm{initializer} is ill-formed.
4141-
41424139
\pnum
41434140
\indextext{initialization!default}%
41444141
\indextext{variable!indeterminate uninitialized}%

0 commit comments

Comments
 (0)