[Bug c++/106973] coroutine generator and setjmp

2024-09-04 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 Arsen Arsenović changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #10 from Arsen Ar

[Bug c++/106973] coroutine generator and setjmp

2024-09-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 --- Comment #9 from GCC Commits --- The trunk branch has been updated by Arsen Arsenovic : https://gcc.gnu.org/g:7b7ad3f4b2455072f42e7884b93fd96ebb920bc8 commit r15-3453-g7b7ad3f4b2455072f42e7884b93fd96ebb920bc8 Author: Arsen ArsenoviÄ Date:

[Bug c++/106973] coroutine generator and setjmp

2024-09-03 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org As

[Bug c++/106973] coroutine generator and setjmp

2022-09-20 Thread woohp135 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 --- Comment #7 from Hui Peng Hu --- 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 whi

[Bug c++/106973] coroutine generator and setjmp

2022-09-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 --- Comment #6 from Iain Sandoe --- (In reply to Jonathan Wakely from comment #5) > 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

[Bug c++/106973] coroutine generator and setjmp

2022-09-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 --- Comment #5 from Jonathan Wakely --- 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

[Bug c++/106973] coroutine generator and setjmp

2022-09-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 --- Comment #4 from Iain Sandoe --- 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, th

[Bug c++/106973] coroutine generator and setjmp

2022-09-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 Martin Liška changed: What|Removed |Added CC||iains at gcc dot gnu.org Sta

[Bug c++/106973] coroutine generator and setjmp

2022-09-20 Thread woohp135 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 --- Comment #2 from Hui Peng Hu --- Created attachment 53592 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53592&action=edit preprocessed cpp file

[Bug c++/106973] coroutine generator and setjmp

2022-09-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106973 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0