https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973
--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> --- Of course, we should not crash in this case. However, I am curious as to how you would expect setjmp/longjmp to work with a coroutine (I recall that the coroutine implementators discussed this with, AFAIR, the outcome that it was not really supportable). Do you have an example of a complete code where setjmp/longjmp is used together with coroutines in clang or MSVC? AFAICT Lewis' code for the generator makes no use of the setjmp/longjump. The exception mechanism that *is* defined in the standard for coroutines is the regular C++ exceptions. So - we need to fix this problem, of course, but also to revisit what the correct behaviours should be for setjmp/longjmp.