Skip to content

Commit 91a7d5e

Browse files
committed
[dcl.dcl, over.best.ics, temp.param, class.union.anon] Remove mentions of "storage class"
1 parent f30ae8f commit 91a7d5e

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

source/classes.tex

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,16 +3305,17 @@
33053305
\pnum
33063306
\indextext{\idxcode{union}!global anonymous}%
33073307
\indextext{scope!anonymous \tcode{union} at namespace}%
3308-
Anonymous unions declared in a named namespace or in the global
3309-
namespace shall be declared \tcode{static}. Anonymous unions declared at
3310-
block scope shall be declared with any storage class allowed for a
3311-
block-scope variable, or with no storage class. A storage class is not
3312-
allowed in a declaration of an anonymous union in a class scope.
3308+
Anonymous unions declared in a named namespace or in the global namespace
3309+
shall be declared \tcode{static}.
3310+
A block-scope anonymous union declaration shall not
3311+
contain a \grammarterm{storage-class-specifier} that is not
3312+
permitted in the declaration of a block-scope variable.
3313+
A \grammarterm{storage-class-specifier} shall not
3314+
appear in a class-scope anonymous union declaration.
33133315
\indextext{access control!anonymous \tcode{union}}%
33143316
\indextext{restriction!anonymous \tcode{union}}%
3315-
An anonymous union shall not have private or protected
3316-
members\iref{class.access}. An anonymous union shall not have
3317-
member functions.
3317+
An anonymous union shall not have private or protected members\iref{class.access}.
3318+
An anonymous union shall not have member functions.
33183319

33193320
\pnum
33203321
A union for which objects, pointers, or references are declared is not an anonymous union.

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,7 @@
21222122
(\grammarterm{decl-specifier-seq};
21232123
\ref{dcl.spec}) and the declarators
21242124
(\grammarterm{init-declarator-list}).
2125-
The specifiers indicate the type, storage class or other properties of
2125+
The specifiers indicate the type, storage duration, linkage, or other properties of
21262126
the entities being declared.
21272127
The declarators specify the names of these entities
21282128
and (optionally) modify the type of the specifiers with operators such as
@@ -8363,7 +8363,7 @@
83638363
\tcode{extern}
83648364
specifier\iref{dcl.stc} for the purpose of determining the linkage of the
83658365
declared name and whether it is a definition. Such a declaration shall
8366-
not specify a storage class.
8366+
not have a \grammarterm{storage-class-specifier}.
83678367
\begin{example}
83688368
\begin{codeblock}
83698369
extern "C" double f();

source/overloading.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@
22422242
are converted to match the corresponding properties of the
22432243
parameter.
22442244
\begin{note}
2245-
Other properties, such as the lifetime, storage class,
2245+
Other properties, such as the lifetime, storage duration, linkage,
22462246
alignment, accessibility of the argument, whether the argument is a bit-field,
22472247
and whether a function is deleted\iref{dcl.fct.def.delete}, are ignored.
22482248
So, although an implicit

source/templates.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,8 @@
304304
called \tcode{T}, rather than an unnamed non-type
305305
\grammarterm{template-parameter} of class \tcode{T}.
306306
\end{example}
307-
A storage class shall not be specified in a
308-
\grammarterm{template-parameter}
309-
declaration.
307+
A \grammarterm{template-parameter} declaration shall not
308+
have a \grammarterm{storage-class-specifier}.
310309
Types shall not be defined in a \grammarterm{template-parameter}
311310
declaration.
312311

0 commit comments

Comments
 (0)