CWG Issue 1525 (original) (raw)
This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-11-05
1525. Array bound inference in temporary array
Section: 7.6.1.4 [expr.type.conv]Status: NADSubmitter: Steve AdamczykDate: 2012-07-18
Should the determination of array bounds from an initializer, described in 9.5.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.5.2 [dcl.init.aggr] paragraph 4.