Including <exec/async_scope.hpp> fails to compile under nvcc with gcc-12 as the host compiler. We observed this in HPX's CUDA CI, where a .cu test pulls in the header through hpx/execution.hpp.
nvcc -std=c++20 -ccbin g++-12 -I<stdexec>/include -c repro.cu
Including <exec/async_scope.hpp> fails to compile under nvcc with gcc-12 as the host compiler. We observed this in HPX's CUDA CI, where a .cu test pulls in the header through hpx/execution.hpp.
Environment
Error
exec/async_scope.hpp:823-825
return when_empty(just());
error: invalid use of void expression
Observed in
Standalone repro (not yet verified outside HPX CI)
// repro.cu
#include <exec/async_scope.hpp>
int main() {}
Notes
Questions