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


3230. Are non-static data members "variables"?

Section: 6.1  [basic.pre]     Status: open     Submitter: Jay Ghiron     Date: 2026-07-18

(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 by the an object declaration (9.1 [dcl.pre]) D of where D that