[Bug c++/98401] coroutines: Temporaries passed to co_await sometimes cause an extraneous call to destructor at incorrect address

2021-12-28 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 --- Comment #9 from Iain Sandoe --- thanks for your analysis; the problem is indeed clear. I have some work in progress that I expect to produce for a fix for this - it is just a question of finding time to progress it.

[Bug c++/98401] coroutines: Temporaries passed to co_await sometimes cause an extraneous call to destructor at incorrect address

2021-12-27 Thread brandt.milo2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 --- Comment #8 from Milo Brandt --- I was trying to fix this and, from my work, I have a precise diagnosis of the bug and a hack that *mostly* fixes things, but leaves a more subtle bug unfixed. Debugging this is getting over my head, but the

[Bug c++/98401] coroutines: Temporaries passed to co_await sometimes cause an extraneous call to destructor at incorrect address

2021-12-27 Thread brandt.milo2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 --- Comment #7 from Milo Brandt --- Created attachment 52075 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52075=edit A proposed testcase for a more subtle variant of the same bug.

[Bug c++/98401] coroutines: Temporaries passed to co_await sometimes cause an extraneous call to destructor at incorrect address

2021-12-27 Thread brandt.milo2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 --- Comment #6 from Milo Brandt --- Created attachment 52074 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52074=edit A proposed testcase for the original bug.

[Bug c++/98401] coroutines: Temporaries passed to co_await sometimes cause an extraneous call to destructor at incorrect address

2021-11-05 Thread pigman46 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 Michael Theall changed: What|Removed |Added CC||pigman46 at gmail dot com --- Comment