Title
longjmp and destructors
Status
c++11
Section
[support.runtime]
Submitter
Lawrence Crowl, Alisdair Meredith

Created on 2008-09-17.00:00:00 last changed 154 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Edit paragraph 4 of [support.runtime] as follows:

The function signature longjmp(jmp_buf jbuf, int val) has more restricted behavior in this International Standard. A setjmp/longjmp call pair has undefined behavior if replacing the setjmp and longjmp by catch and throw would destroy invoke any non-trivial destructors for any automatic objects.

Date: 2008-09-17.00:00:00

The interaction between longjmp and exceptions seems unnecessarily restrictive and not in keeping with existing practice.

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg4255
2008-09-17 00:00:00admincreate