- Title
- Jumps in function-try-block handlers
- Status
- cd1
- Section
- 13.4 [temp.arg]
- Submitter
- Mike Miller
Created on 2000-09-15.00:00:00 last changed 217 months ago
Messages
Date: 2001-04-15.00:00:00
[Moved to DR at 4/01 meeting.]
Date: 2001-04-15.00:00:00
Proposed resolution (04/01): Delete 14.4 [except.handle] paragraph 14.
Date: 2026-07-25.21:52:10
Is it permitted to jump from a handler of a
function-try-block into the body of the function? Clause 14 [except] paragraph 2 would appear to disallow
such a jump: However, 14.4 [except.handle] paragraph 14 mentions
only constructors and destructors for the prohibition: Is this paragraph simply reemphasizing the more general
restriction, or does it assume that such a jump would be permitted
for functions other than constructors or destructors? If the
former interpretation is correct, it is confusing and should be
either eliminated or turned into a note. If the latter
interpretation is accurate, Clause 14 [except] paragraph 2
must be revised. (See also issue 98.)
A goto , break , return , or continue
statement can be used to transfer control out of a try block or
handler, but not into one.
If the handlers of a function-try-block contain a jump into the
body of a constructor or destructor, the program is ill-formed.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-10-05 00:00:00 | admin | set | status: wp -> cd1 |
| 2003-04-25 00:00:00 | admin | set | status: dr -> wp |
| 2002-05-10 00:00:00 | admin | set | messages: + msg689 |
| 2001-05-20 00:00:00 | admin | set | status: ready -> dr |
| 2000-11-18 00:00:00 | admin | set | messages: + msg404 |
| 2000-09-15 00:00:00 | admin | create | |