Skip to content

Commit e6150e3

Browse files
hubert-reinterpretcasttkoeppe
authored andcommitted
[class.mem.general] Fix data member definition to include anonymous union members
Anonymous union members are not introduced by _member-declarator_. Fixes #4939.
1 parent ccf746f commit e6150e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/classes.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,8 @@
669669
or declare at least one unnamed bit-field.
670670

671671
\pnum
672-
A \defn{data member} is a non-function member introduced by a
673-
\grammarterm{member-declarator}.
672+
A \defn{data member} is either a non-function member introduced by a
673+
\grammarterm{member-declarator} or an anonymous union member.
674674
A \defn{member function} is a member that is a function.
675675
Nested types are classes\iref{class.name,class.nest} and
676676
enumerations\iref{dcl.enum} declared in the class and arbitrary types

0 commit comments

Comments
 (0)