A setjmp/longjmp call pair has undefined behavior if replacing the setjmp and longjmp by catch
and throw would invoke any non-trivial destructors for any automatic objects.
It's unclear what does the document mean by "replacing". Could be something like "if ... skips stack unwinding ..."
It's unclear what does the document mean by "replacing". Could be something like "if ... skips stack unwinding ..."