This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 120c. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2026-09-13
(From submission #1005.)
The definition of "variable" in 6.1 [basic.pre] paragraph 7 does not clearly exclude non-static data members, because those are also declared using an object declaration as defined in 9.1 [dcl.pre] paragraph 8.
Possible resolution:
Change in 6.1 [basic.pre] paragraph 7 as follows:
A variable is introduced bythean object declaration (9.1 [dcl.pre])D of
- a reference other than a non-static data member or
- an object,
where Dthat
- is not the parameter-declaration of a template-parameter and
- does not declare a non-static member (11.4.1 [class.mem.general]).