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

2024-04-18


1525. Array bound inference in temporary array

Section: 7.6.1.4  [expr.type.conv]     Status: NAD     Submitter: Steve Adamczyk     Date: 2012-07-18

Should the determination of array bounds from an initializer, described in 9.4.2 [dcl.init.aggr] paragraph 4, apply to creation of a temporary array using the T{expr} syntax? E.g., is the following example well-formed?

  typedef int ARR[];
  int* p = ARR{1,2,3};

(See also issues 1300, 1307, and 1326.)

Rationale (October, 2012):

The example is valid, according to the new wording of 9.4.2 [dcl.init.aggr] paragraph 4.