Title
Range-based for and array of runtime bound
Status
nad
Section
8.6.5 [stmt.ranged]
Submitter
Jason Merrill

Created on 2013-05-09.00:00:00 last changed 128 months ago

Messages

Date: 2013-09-15.00:00:00

Rationale (September, 2013):

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

Date: 2022-11-20.07:54:16

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.

History
Date User Action Args
2013-10-14 00:00:00adminsetmessages: + msg4706
2013-10-14 00:00:00adminsetstatus: open -> nad
2013-05-09 00:00:00admincreate