Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions source/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3257,11 +3257,12 @@
\pnum
\indextext{\idxcode{union}!global anonymous}%
\indextext{scope!anonymous \tcode{union} at namespace}%
Anonymous unions declared in the scope of a namespace with external linkage
shall be declared \keyword{static}. Anonymous unions declared at
block scope shall be declared with any storage class allowed for a
block variable, or with no storage class. A storage class is not
allowed in a declaration of an anonymous union in a class scope.
An anonymous union declared in the scope of a namespace with external linkage
shall use the \grammarterm{storage-class-specifier} \keyword{static}.
Anonymous unions declared at block scope shall not use a \grammarterm{storage-class-specifier}
that is not permitted in the declaration of a block variable.
An anonymous union declaration at class scope shall not have
a \grammarterm{storage-class-specifier}.

\pnum
\begin{note}
Expand Down
4 changes: 2 additions & 2 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@
it is as if a unique identifier were included in
the appropriate place\iref{dcl.name}.
The preceding specifiers indicate
the type, storage class or other properties
the type, storage duration, linkage, or other properties
of the entity or entities being declared.
Each declarator specifies one entity and
(optionally) names it and/or
Expand Down Expand Up @@ -8483,7 +8483,7 @@
\keyword{extern}
specifier\iref{dcl.stc} for the purpose of determining the linkage of the
declared name and whether it is a definition. Such a declaration shall
not specify a storage class.
not have a \grammarterm{storage-class-specifier}.
\begin{example}
\begin{codeblock}
extern "C" double f();
Expand Down
2 changes: 1 addition & 1 deletion source/overloading.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,7 @@
are converted to match the corresponding properties of the
parameter.
\begin{note}
Other properties, such as the lifetime, storage class,
Other properties, such as the lifetime, storage duration, linkage,
alignment, accessibility of the argument, whether the argument is a bit-field,
and whether a function is deleted\iref{dcl.fct.def.delete}, are ignored.
So, although an implicit
Expand Down
5 changes: 2 additions & 3 deletions source/templates.tex
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,8 @@
called \tcode{T}, rather than an unnamed non-type
\grammarterm{template-parameter} of class \tcode{T}.
\end{example}
A storage class shall not be specified in a
\grammarterm{template-parameter}
declaration.
A \grammarterm{template-parameter} declaration shall not
have a \grammarterm{storage-class-specifier}.
Types shall not be defined in a \grammarterm{template-parameter}
declaration.

Expand Down