Skip to content

Commit 5b61c71

Browse files
eisenwavetkoeppe
authored andcommitted
CWG3079 Allow empty-declarations in anonymous unions
1 parent 3140e5f commit 5b61c71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/classes.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3357,7 +3357,8 @@
33573357
\indextext{access control!anonymous \tcode{union}}%
33583358
\indextext{restriction!anonymous \tcode{union}}%
33593359
Each \grammarterm{member-declaration} in the \grammarterm{member-specification}
3360-
of an anonymous union shall either define one or more public non-static data members or
3360+
of an anonymous union shall define one or more public non-static data members,
3361+
be an \grammarterm{empty-declaration}, or
33613362
be a \grammarterm{static_assert-declaration}.
33623363
Nested types, anonymous unions, and functions
33633364
shall not be declared within an anonymous union.

0 commit comments

Comments
 (0)