[Bug c++/99576] [coroutines] destructor of a temporary called too early within co_await expression

2022-11-28 Thread adrian.perl at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #12 from Adrian Perl --- I have sent the patch and tests to gcc-patc...@gcc.gnu.org Thanks for the guidance

[Bug c++/99576] [coroutines] destructor of a temporary called too early within co_await expression

2022-11-27 Thread adrian.perl at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #11 from Adrian Perl --- Yeah, my mistake. My IDE failed to look up the function and a short search on the internet revealed only builtin_trap (https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html) You just saved me hours with the

[Bug c++/99576] [coroutines] destructor of a temporary called too early within co_await expression

2022-11-27 Thread adrian.perl at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #9 from Adrian Perl --- Thanks for the advice. I hope you meant __builtin_trap() as I can't find a __builtin_abort() function. I have now written test applications for all relevant bug reports (99576, 100611, 101976, 101367). I also

[Bug c++/99576] [coroutines] destructor of a temporary called too early within co_await expression

2022-11-26 Thread adrian.perl at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #7 from Adrian Perl --- Bootstrapping was successfull and the tests are currently running. Some of the tests have failed, but they don't seem to be related to coroutines. Should I test twice, with and without the patch, in order to se

[Bug c++/99576] [coroutines] destructor of a temporary called too early within co_await expression

2022-11-25 Thread adrian.perl at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 Adrian Perl changed: What|Removed |Added CC||adrian.perl at web dot de --- Comment #5 f