From 8a8017c2a0d3b597d0406c63abb20898c5ffc1c6 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Fri, 20 Mar 2020 10:53:21 -0400 Subject: [PATCH] [dcl.init, dcl.stc] Move specification as to where extern is allowed into [dcl.stc] --- source/declarations.tex | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/declarations.tex b/source/declarations.tex index 94739e398d..29f5684beb 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -406,7 +406,8 @@ \indextext{restriction!\idxcode{extern}}% The \tcode{extern} specifier shall be applied only to the declaration of a variable or function. The \tcode{extern} specifier shall not be used in the -declaration of a class member or function parameter. +declaration of a class member, function parameter, or block-scope variable with +an \grammarterm{initializer}. \indextext{\idxcode{extern}!linkage of}% \indextext{consistency!linkage}% For the linkage of a name declared with an \tcode{extern} specifier, @@ -4135,10 +4136,6 @@ and~\ref{stmt.dcl}. \end{note} -\pnum -A declaration of a block-scope variable with external or internal -linkage that has an \grammarterm{initializer} is ill-formed. - \pnum \indextext{initialization!default}% \indextext{variable!indeterminate uninitialized}%