Title
Inconsistently-interrelated examples
Status
c++11
Section
9.4.4 [dcl.init.ref]
Submitter
Doug Gregor

Created on 2011-01-20.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-01-20.00:00:00

The examples in 9.4.4 [dcl.init.ref] paragraph 5 are not consistent as to whether earlier code fragments are assumed to be part of the example or not. For instance, the variables i and d are used as initializers without declaration in later fragments, presumably intended to refer to the declarations introduced in the first couple. However, the third fragment declares rca, which is an incompatible redeclaration of a name declared in the first fragment.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetmessages: + msg3349
2011-04-10 00:00:00adminsetstatus: open -> fdis
2011-01-20 00:00:00admincreate