Title
Misleading footnote regarding multiple-declarator declarations
Status
c++11
Section
9.3 [dcl.decl]
Submitter
Johannes Schaub

Created on 2011-02-08.00:00:00 last changed 96 months ago

Messages

Date: 2011-03-15.00:00:00

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

Date: 2011-02-08.00:00:00

The footnote for 9.3 [dcl.decl] paragraph 3 reads,

A declaration with several declarators is usually equivalent to the corresponding sequence of declarations each with a single declarator... The exception occurs when a name introduced by one of the declarators hides a type name used by the decl-specifiers, so that when the same decl-specifiers are used in a subsequent declaration, they do not have the same meaning...

A more important exception to the rule has been added in C++0x, specifically with the auto specifier when the deduced type is not the same for all declarators, which renders the declaration ill-formed. The footnote should be updated accordingly.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetmessages: + msg3338
2011-04-10 00:00:00adminsetstatus: open -> fdis
2011-02-08 00:00:00admincreate