CWG Issue 1345 (original) (raw)
This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-11-05
1345. Initialization of anonymous union class members
Section: 11.9.3 [class.base.init]Status: CD3Submitter: Sean HuntDate: 2011-08-16
[Voted into the WP at the February, 2012 meeting; moved to DR at the October, 2012 meeting.]
11.9.3 [class.base.init] paragraph 8 appears to indicate that a class member that is an anonymous union is to be default initilized.
Proposed resolution (August, 2011):
Change the indicated bullet of 11.9.3 [class.base.init] paragraph 8 as follows:
- otherwise, if the entity is an anonymous union or a variant member (11.5 [class.union]), no initialization is performed;