Title
Deferred instantiation and checking of non-static data member initializers
Status
c++23
Section
13.9.2 [temp.inst]
Submitter
Jason Merrill

Created on 2011-09-22.00:00:00 last changed 16 months ago

Messages

Date: 2022-11-20.07:54:16

CWG 2022-11-11

Resolved by issue 2631.

Date: 2013-03-15.00:00:00

Additional note (March, 2013):

Determining whether a defaulted constructor is constexpr or not requires parsing the class's non-static data member initializers; see also issue 1360.

Date: 2012-10-15.00:00:00

Notes from the October, 2012 meeting:

CWG agreed that non-static data member initializers should be handled like default arguments.

Date: 2022-11-15.00:00:00

[Resolved by issue 2631, which was accepted as a DR at the November, 2022 meeting.]

Non-static data member initializers get the same late parsing as member functions and default arguments, but are they also instantiated as needed like them? And when is their validity checked?

History
Date User Action Args
2023-07-16 13:00:43adminsetstatus: open -> c++23
2023-07-16 13:00:43adminsetstatus: drwp -> open
2023-02-18 18:43:04adminsetstatus: dr -> drwp
2023-02-07 05:39:21adminsetstatus: review -> dr
2022-11-20 07:54:16adminsetmessages: + msg7031
2022-11-20 07:54:16adminsetstatus: open -> review
2022-02-18 07:47:23adminsetstatus: drafting -> open
2013-03-18 00:00:00adminsetmessages: + msg4259
2012-11-03 00:00:00adminsetmessages: + msg4110
2012-11-03 00:00:00adminsetstatus: open -> drafting
2011-09-22 00:00:00admincreate