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

2023-07-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 Richard Biener changed: What|Removed |Added Target Milestone|10.5|13.0 Resolution|---

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

2022-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #16 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:58a7b1e354530d8dfe7d8fb859c8b8b5a9140f1f commit r13-4479-g58a7b1e354530d8dfe7d8fb859c8b8b5a9140f1f Author: Iain Sandoe Date:

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

2022-12-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 Iain Sandoe changed: What|Removed |Added Target Milestone|--- |10.5 --- Comment #15 from Iain Sandoe

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

2022-11-30 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #14 from Iain Sandoe --- (In reply to Iain Sandoe from comment #13) > (In reply to Adrian Perl from comment #12) > > I have sent the patch and tests to gcc-patc...@gcc.gnu.org > > As noted there, the patch causes regressions in more

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

2022-11-30 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #13 from Iain Sandoe --- (In reply to Adrian Perl from comment #12) > I have sent the patch and tests to gcc-patc...@gcc.gnu.org As noted there, the patch causes regressions in more complex library code (e.g. some tests in folly)

[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 iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #10 from Iain Sandoe --- (In reply to Adrian Perl from comment #9) > Thanks for the advice. > > I hope you meant __builtin_trap() as I can't find a __builtin_abort() > function. hmm .. I meant __builtin_abort () ... it is widely

[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

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

2022-11-26 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #8 from Iain Sandoe --- (In reply to Adrian Perl from comment #7) Again, thanks for working on this. > Bootstrapping was successfull and the tests are currently running. Some of > the tests have failed, but they don't seem to be

[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

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

2022-11-25 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #6 from Iain Sandoe --- (In reply to Adrian Perl from comment #5) > Created attachment 53963 [details] thanks for the analysis and the patch. > Patch: > diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc > index

[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

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

2021-10-01 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 Iain Sandoe changed: What|Removed |Added Last reconfirmed||2021-10-01 Status|UNCONFIRMED

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

2021-06-23 Thread victor.burckel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #4 from Victor Burckel --- I'm also seeing the same behavior, destructor of lambda captures seems to get called twice https://godbolt.org/z/zxnhM3x47

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

2021-06-10 Thread davidledger at live dot com.au via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 David Ledger changed: What|Removed |Added CC||davidledger at live dot com.au ---

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

2021-05-15 Thread nilsgladitz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 --- Comment #2 from Nils Gladitz --- I opened bug 100611 for what I described above; assuming this is related but distinct.

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

2021-05-14 Thread nilsgladitz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 Nils Gladitz changed: What|Removed |Added CC||nilsgladitz at gmail dot com --- Comment