Title
Order of implicit destruction vs release of automatic storage
Status
drafting
Section
8.7 [stmt.jump]
Submitter
Richard Smith

Created on 2015-04-16.00:00:00 last changed 95 months ago

Messages

Date: 2016-02-15.00:00:00

Notes from the February, 2016 meeting:

CWG agreed that the storage should persist until all destructions are complete, although the “as-if” rule would allow for unobservable optimizations of this ordering.

Date: 2015-04-16.00:00:00

The relative ordering between destruction of automatic variables on exit from a block and the release of the variables' storage is not specified by the Standard: are all the destructors executed first and then the storage released, or are they interleaved?

History
Date User Action Args
2017-02-06 00:00:00adminsetmessages: + msg5753
2017-02-06 00:00:00adminsetstatus: open -> drafting
2015-04-16 00:00:00admincreate