Skip to content

Commit 7bde32c

Browse files
jensmaurerzygoloid
authored andcommitted
[class.union.anon] Remove duplicate normative wording.
1 parent cd41f4a commit 7bde32c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

source/classes.tex

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,9 +3305,11 @@
33053305
\end{ncsimplebnf}
33063306
is called an \defn{anonymous union}; it defines an unnamed type and
33073307
an unnamed object of that type called an \defn{anonymous union object}.
3308+
\indextext{access control!anonymous \tcode{union}}%
3309+
\indextext{restriction!anonymous \tcode{union}}%
33083310
Each \grammarterm{member-declaration} in the \grammarterm{member-specification}
3309-
of an anonymous union shall either define a non-static data member or be a
3310-
\grammarterm{static_assert-declaration}.
3311+
of an anonymous union shall either define a public non-static data member or
3312+
be a \grammarterm{static_assert-declaration}.
33113313
Nested types, anonymous unions, and functions
33123314
shall not be declared within an anonymous union.
33133315
The names of the members of an anonymous union shall be distinct from
@@ -3336,11 +3338,6 @@
33363338
block scope shall be declared with any storage class allowed for a
33373339
block-scope variable, or with no storage class. A storage class is not
33383340
allowed in a declaration of an anonymous union in a class scope.
3339-
\indextext{access control!anonymous \tcode{union}}%
3340-
\indextext{restriction!anonymous \tcode{union}}%
3341-
An anonymous union shall not have private or protected
3342-
members\iref{class.access}. An anonymous union shall not have
3343-
member functions.
33443341

33453342
\pnum
33463343
\begin{note}

0 commit comments

Comments
 (0)