Title
Falling off the end of a destructor's function-try-block handler
Status
nad
Section
14.4 [except.handle]
Submitter
Alisdair Meredith

Created on 2006-08-30.00:00:00 last changed 212 months ago

Messages

Date: 2006-10-15.00:00:00

Rationale (October, 2006):

The CWG felt that the current behavior is clearly specified and reflects the intention of the Committee at the time the rules were adopted. Possible changes to these rules should be pursued through the Evolution Working Group.

Date: 2022-11-20.07:54:16

If control reaches the end of handler in a destructor's function-try-block, the exception is rethrown (14.4 [except.handle] paragraph 15). Because of the danger of destructors that throw exceptions, would it be better to treat this case as an implicit return; statement, as in a function body? There could be a transitional period, perhaps using conditionally-supported behavior or the like, before mandating the change.

History
Date User Action Args
2006-11-05 00:00:00adminsetmessages: + msg1455
2006-11-05 00:00:00adminsetstatus: open -> nad
2006-08-30 00:00:00admincreate