Title
Array bound inference in temporary array
Status
nad
Section
7.6.1.4 [expr.type.conv]
Submitter
Steve Adamczyk

Created on 2012-07-18.00:00:00 last changed 146 months ago

Messages

Date: 2012-10-15.00:00:00

Rationale (October, 2012):

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

Date: 2022-11-20.07:54:16

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.)

History
Date User Action Args
2012-11-03 00:00:00adminsetmessages: + msg4173
2012-11-03 00:00:00adminsetstatus: open -> nad
2012-07-18 00:00:00admincreate