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

2023-01-15


1236. Inconsistently-interrelated examples

Section: 9.4.4  [dcl.init.ref]     Status: C++11     Submitter: Doug Gregor     Date: 2011-01-20

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

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.