[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] Temporaries passed to co_await sometimes cause an extraneous call to destructor at incorrect address

2020-12-20 Thread brandt.milo2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 --- Comment #1 from Milo Brandt --- Created attachment 49812 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49812=edit A zipped copy of the preprocessed source (main.ii) - which is slightly larger than the 1000 KB file size limit alone

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

2020-12-20 Thread brandt.milo2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 Bug ID: 98401 Summary: Temporaries passed to co_await sometimes cause an extraneous call to destructor at incorrect address Product: gcc Version: 10.2.0 Status: