Closed prlw1 closed 6 months ago
/opt/compiler-explorer/libs/stdexec/trunk/include/stdexec/execution.hpp:2623:31: error: invalid use of void expression
2623 | __make_sexpr<then_t>(static_cast<_Fun&&>(__fun), static_cast<_Sender&&>(__sndr)));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__make_sexpr
invocations can't ever have type void
. This seems like a bug in gcc-trunk to me. I suggest reporting it there.
How did you manage to get it to spit out that error message? (I don't see mention of __make_sexpr
anywhere in my output.)
The gcc team are already on the case: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114393
and they fixed it! https://gcc.gnu.org/g:d74fe10b13336b9de2e025ced4af00a25ff1d3e7
gcc trunk is unhappy with
stdexec::just()
Simply trying gcc trunk on the godbolt README example gives
async_scope.hpp
is similarly unhappy: