File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2117
2117
\tcode {X}
2118
2118
calls the destructors for
2119
2119
\tcode {X}'s
2120
- direct non-variant non-static data members, the destructors for
2120
+ direct non-variant non-static data members other than anonymous unions,
2121
+ the destructors for
2121
2122
\tcode {X}'s
2122
2123
non-virtual direct base classes and, if
2123
2124
\tcode {X}
Original file line number Diff line number Diff line change 5097
5097
5098
5098
\pnum
5099
5099
The destructor for each element of class type
5100
+ other than an anonymous union member
5100
5101
is potentially invoked\iref {class.dtor }
5101
5102
from the context where the aggregate initialization occurs.
5102
5103
\begin {note }
Original file line number Diff line number Diff line change 421
421
\end {note }
422
422
\indextext {subobject!initialized, known to be}%
423
423
A subobject is \defn {known to be initialized}
424
- if its initialization is specified
424
+ if it is not an anonymous union member and
425
+ its initialization is specified
425
426
\begin {itemize }
426
427
\item in \ref {class.base.init } for initialization by constructor,
427
428
\item in \ref {class.copy.ctor } for initialization by defaulted copy/move constructor,
You can’t perform that action at this time.
0 commit comments