From cd69bbcd2bdef910cc4a6bee04aaa8c9d90efeaa Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 28 Jan 2025 16:01:30 +0400 Subject: [PATCH 1/2] [basic.scope.scope] Update the note about special cases --- source/basic.tex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/basic.tex b/source/basic.tex index 3af64d3e5c..3d1b50cc1a 100644 --- a/source/basic.tex +++ b/source/basic.tex @@ -933,8 +933,9 @@ certain \grammarterm{elaborated-type-specifier}s\iref{dcl.type.elab} target a larger enclosing scope. \item -Block-scope extern declarations target a larger enclosing scope -but bind a name in their immediate scope. +Declarations in block scope that have \tcode{extern} specifier +or declare a function target an innermost namespace scope +but bind a name in their immediate scope\iref{dcl.meaning}. \item The names of unscoped enumerators are bound in the two innermost enclosing scopes\iref{dcl.enum}. From b6ed1e5193c7de60bf2323b58da66eaa937aff9d Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 28 Jan 2025 16:20:16 +0400 Subject: [PATCH 2/2] Address feedback --- source/basic.tex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/basic.tex b/source/basic.tex index 3d1b50cc1a..de3d6ce813 100644 --- a/source/basic.tex +++ b/source/basic.tex @@ -933,9 +933,8 @@ certain \grammarterm{elaborated-type-specifier}s\iref{dcl.type.elab} target a larger enclosing scope. \item -Declarations in block scope that have \tcode{extern} specifier -or declare a function target an innermost namespace scope -but bind a name in their immediate scope\iref{dcl.meaning}. +Block-scope extern or function declarations target a larger enclosing scope +but bind a name in their immediate scope\iref{dcl.meaning.general}. \item The names of unscoped enumerators are bound in the two innermost enclosing scopes\iref{dcl.enum}.