Feedback
Destructors can repeat when caught exceptions retain the receiver
- Status
- Fixed
- Fixed in
- v26.10.3
- Area
- compiler
- Source discussion
- -
- Last updated
- 2026-10-20
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
An object can run its destructor more than once when the destructor catches an exception that carries a reference to that object, even though the object has not been saved anywhere. Cleanup can repeat indefinitely if the same exception keeps occurring.