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

2024-10-26


1346. expression-list initializers and the auto specifier

Section: 9.2.9.7  [dcl.spec.auto]     Status: CD3     Submitter: Richard Smith     Date: 2011-08-16

[Voted into the WP at the February, 2012 meeting; moved to DR at the October, 2012 meeting.]

9.2.9.7 [dcl.spec.auto] does not address the case when the initializer for an auto variable is a parenthesized expression-list.

Proposed resolution (August, 2011):

Change 9.2.9.7 [dcl.spec.auto] paragraph 3 as follows:

...auto shall appear as one of the decl-specifiers in the decl-specifier-seq and the decl-specifier-seq shall be followed by one or more init-declarators, each of which shall have a non-empty initializer. In an initializer of the form

the expression-list shall be a single assignment-expression. [Example:...