https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973
--- Comment #7 from Hui Peng Hu <woohp135 at gmail dot com> ---
I was trying to call libjpeg to decode images inside a generator. A snippet of
code that I found online used setjmp/longjmp for error handling, hence I ran
into this issue. Given that the longjmp is called while the coroutine is
executing, I'd imagine that the behavior is fairly well-defined. I've since
moved on to using regular c++ exceptions for error handling, and so this issue
isn't affecting me anymore, but I thought it'll still be nice to get it fixed
(or at least print a helpful warning/error message) so that gcc is not
segfaulting

Reply via email to