A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.github.io/CWG/issues/1525.html below:

CWG Issue 1525

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

2025-08-11

1525. Array bound inference in temporary arraySection: 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.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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4