CWG Issue 1368 (original) (raw)

This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-04-13


1368. Value initialization and defaulted constructors (part 2)

Section: 9.5 [dcl.init]Status: CD3Submitter: Jason MerrillDate: 2011-06-28

[Voted into the WP at the February, 2012 meeting; moved to DR at the October, 2012 meeting.]

According to the current rules of 9.5 [dcl.init], given a class like

struct A { int i; A() = default; A(int i): i(i) { } };

value-initialization leaves A::i uninitialized. This seems like an oversight.

Proposed resolution (August, 2011):

This issue is resolved by the resolution ofissue 1301.