Title
this is not odr-used in a constant expression
Status
nad
Section
6.3 [basic.def.odr]
Submitter
Daveed Vandevoorde

Created on 2016-03-04.00:00:00 last changed 47 months ago

Messages

Date: 2019-02-15.00:00:00

Rationale (February, 2019):

This specification is now used by contracts.

Date: 2018-04-15.00:00:00

Notes from the April, 2018 teleconference:

Specification of the odr-use of this was done to allow determination of whether this should be captured by a lambda. Recent changes to determine capture syntactically, rather than by odr-use, have rendered this issue almost moot. However, 6.3 [basic.def.odr] still describes when this is odr-used; this specification is no longer necessary and should be removed.

Date: 2022-09-25.18:08:42

According to 6.3 [basic.def.odr] paragraph 3,

this is odr-used if it appears as a potentially-evaluated expression (including as the result of the implicit transformation in the body of a non-static member function (11.4.3 [class.mfct.non.static])).

This wording does not distinguish between constant and non-constant expressions in determining whether this is odr-used or not.

History
Date User Action Args
2020-12-15 00:00:00adminsetmessages: + msg6291
2020-12-15 00:00:00adminsetstatus: drafting -> nad
2018-04-11 00:00:00adminsetmessages: + msg6187
2018-04-11 00:00:00adminsetstatus: open -> drafting
2016-03-04 00:00:00admincreate