CWG Issue 1324 (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


1324. Value initialization and defaulted constructors

Section: 9.5 [dcl.init]Status: CD3Submitter: Daniel KrüglerDate: 2011-05-22

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

One would expect that an example like

struct B { B(const B&) = default; };

B b{};

would invoke value-initialization, but (because it does not have a default constructor), the logic ladder of 9.5.5 [dcl.init.list] paragraph 3 makes it aggregate initialization instead:

Proposed resolution (August, 2011):

This issue is resolved by the resolution ofissue 1301.