Skip to content

Commit dc6eed0

Browse files
authored
[dcl.dcl, over.best.ics, temp.param, class.union.anon] Remove mentions of "storage class" (#3906)
1 parent 4a6f2e3 commit dc6eed0

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

source/classes.tex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3257,11 +3257,12 @@
32573257
\pnum
32583258
\indextext{\idxcode{union}!global anonymous}%
32593259
\indextext{scope!anonymous \tcode{union} at namespace}%
3260-
Anonymous unions declared in the scope of a namespace with external linkage
3261-
shall be declared \keyword{static}. Anonymous unions declared at
3262-
block scope shall be declared with any storage class allowed for a
3263-
block variable, or with no storage class. A storage class is not
3264-
allowed in a declaration of an anonymous union in a class scope.
3260+
An anonymous union declared in the scope of a namespace with external linkage
3261+
shall use the \grammarterm{storage-class-specifier} \keyword{static}.
3262+
Anonymous unions declared at block scope shall not use a \grammarterm{storage-class-specifier}
3263+
that is not permitted in the declaration of a block variable.
3264+
An anonymous union declaration at class scope shall not have
3265+
a \grammarterm{storage-class-specifier}.
32653266

32663267
\pnum
32673268
\begin{note}

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@
21622162
it is as if a unique identifier were included in
21632163
the appropriate place\iref{dcl.name}.
21642164
The preceding specifiers indicate
2165-
the type, storage class or other properties
2165+
the type, storage duration, linkage, or other properties
21662166
of the entity or entities being declared.
21672167
Each declarator specifies one entity and
21682168
(optionally) names it and/or
@@ -8483,7 +8483,7 @@
84838483
\keyword{extern}
84848484
specifier\iref{dcl.stc} for the purpose of determining the linkage of the
84858485
declared name and whether it is a definition. Such a declaration shall
8486-
not specify a storage class.
8486+
not have a \grammarterm{storage-class-specifier}.
84878487
\begin{example}
84888488
\begin{codeblock}
84898489
extern "C" double f();

source/overloading.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@
20012001
are converted to match the corresponding properties of the
20022002
parameter.
20032003
\begin{note}
2004-
Other properties, such as the lifetime, storage class,
2004+
Other properties, such as the lifetime, storage duration, linkage,
20052005
alignment, accessibility of the argument, whether the argument is a bit-field,
20062006
and whether a function is deleted\iref{dcl.fct.def.delete}, are ignored.
20072007
So, although an implicit

source/templates.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,8 @@
306306
called \tcode{T}, rather than an unnamed non-type
307307
\grammarterm{template-parameter} of class \tcode{T}.
308308
\end{example}
309-
A storage class shall not be specified in a
310-
\grammarterm{template-parameter}
311-
declaration.
309+
A \grammarterm{template-parameter} declaration shall not
310+
have a \grammarterm{storage-class-specifier}.
312311
Types shall not be defined in a \grammarterm{template-parameter}
313312
declaration.
314313

0 commit comments

Comments
 (0)