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

2024-11-11


1489. Is value-initialization of an array constant initialization?

Section: 6.9.3.2  [basic.start.static]     Status: CD3     Submitter: Steve Adamczyk     Date: 2012-03-29

[Moved to DR at the April, 2013 meeting.]

According to 6.9.3.2 [basic.start.static] paragraph 2,

Constant initialization is performed:

Presumably this would include a value-initialization (i.e., with no expressions) such as

  int a[1000]{};

However, we have recently clarified the degenerate cases of other similar rules referencing “every,” so it wouldn't hurt to be more explicit here.

Proposed resolution (October, 2012):

Change 6.9.3.2 [basic.start.static] paragraph 2 as follows:

Constant initialization is performed: