Title
Lifetime extension of temporary via reference to subobject
Status
nad
Section
6.7.7 [class.temporary]
Submitter
Richard Smith

Created on 2013-04-15.00:00:00 last changed 48 months ago

Messages

Date: 2019-02-15.00:00:00

Rationale (February, 2019):

This concern is already covered by 6.7.7 [class.temporary] paragraph 6:

The temporary object to which the reference is bound or the temporary object that is the complete object of a subobject to which the reference is bound persists for the lifetime of the reference if...
Date: 2014-02-15.00:00:00

Proposed resolution (February, 2014): [SUPERSEDED]

This issue is resolved by the resolution of issue 1299.

Date: 2013-04-15.00:00:00

The resolution of issues 616 and 1213, making the result of a member access or subscript expression applied to a prvalue an xvalue, means that binding a reference to such a subobject of a temporary does not extend the temporary's lifetime. 6.7.7 [class.temporary] should be revised to ensure that it does.

History
Date User Action Args
2020-12-15 00:00:00adminsetmessages: + msg6293
2020-12-15 00:00:00adminsetstatus: drafting -> nad
2014-11-24 00:00:00adminsetstatus: ready -> drafting
2014-03-03 00:00:00adminsetmessages: + msg4838
2014-03-03 00:00:00adminsetstatus: drafting -> ready
2013-04-15 00:00:00admincreate