This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


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 ( [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.