https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The standard says:

> A call to setjmp or longjmp has undefined behavior if invoked in a suspension 
> context of a coroutine (7.6.2.4).

Given that, I don't see why using setjmp in example would be useful.

Reply via email to