Title
expression-list initializers and the auto specifier
Status
cd3
Section
9.2.9.7 [dcl.spec.auto]
Submitter
Richard Smith

Created on 2011-08-16.00:00:00 last changed 122 months ago

Messages

Date: 2012-02-15.00:00:00

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

Date: 2011-08-15.00:00:00

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

    ( expression-list )

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

Date: 2011-08-16.00:00:00

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

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2012-11-03 00:00:00adminsetstatus: dr -> drwp
2012-02-27 00:00:00adminsetmessages: + msg3804
2012-02-27 00:00:00adminsetstatus: ready -> dr
2011-09-06 00:00:00adminsetmessages: + msg3455
2011-08-16 00:00:00admincreate