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

2024-12-19


2116. Direct or copy initialization for omitted aggregate initializers

Section: 9.4.2  [dcl.init.aggr]     Status: C++17     Submitter: Richard Smith     Date: 2015-04-22

[Adopted at the February/March, 2017 meeting.]

The Standard does not specify whether the initialization from {} that is done for omitted initializers in aggregate initialization is direct or copy initialization. There is divergence among implementations.

Proposed resolution (May, 2015) [SUPERSEDED]:

This issue is resolved by the resolution of issue 1630.

Notes from the October, 2015 meeting:

CWG agreed that copy initialization should be used; paragraph 7 should have wording similar to paragraph 2. See also issue 1518.

Additional notes (July, 2022):

The resolution of issue 2272 also resolves this issue.