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


1679. Range-based for and array of runtime bound

Section: 8.6.5  [stmt.ranged]     Status: NAD     Submitter: Jason Merrill     Date: 2013-05-09

The expansion of a range-based for in 8.6.5 [stmt.ranged] paragraph 1 involves a declaration of the form

  auto && __range = range-init;

However, it is not permitted to bind a reference to an array of runtime bound (9.3.4.3 [dcl.ref] paragraph 5), even though it is intended that such arrays can be used in a range-based for.

Rationale (September, 2013):

Arrays of runtime bound were moved from the normative specification to a proposed Technical Specification.