Title
Are non-static data members "variables"?
Status
tentatively ready
Section
6.1 [basic.pre]
Submitter
Jay Ghiron

Created on 2026-07-18.00:00:00 last changed 2 weeks ago

Messages

Date: 2026-10-07.20:41:18

Proposed resolution (approved by CWG 2026-10-06):

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
  • a reference other than a non-static data member or
  • an object,
where D that
  • is not the parameter-declaration of a template-parameter and
  • does not declare a non-static member (11.4.1 [class.mem.general]).
Date: 2026-07-18.00:00:00

(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.

History
Date User Action Args
2026-10-07 20:41:18adminsetstatus: open -> tentatively ready
2026-09-13 09:38:07adminsetmessages: + msg8678
2026-07-18 00:00:00admincreate