Shreyas Atre

Results 125 comments of Shreyas Atre

On taking another look `futures2[i]` has a type of `hpx::future&` which is a glvalue (“generalized” lvalue) which is an lvalue or an xvalue. As per cpp reference, > If the...

> @SAtacker I found another issue using gcc 10.3.1 and here I get the following error > > ``` > /home/jovyan/project/src/taylor_future_coroutine_hpx.cpp: In function 'hpx::future run(size_t, size_t, double)': > /home/jovyan/project/src/taylor_future_coroutine_hpx.cpp:47:19: error:...

> > @SAtacker I found another issue using gcc 10.3.1 and here I get the following error > > ``` > > /home/jovyan/project/src/taylor_future_coroutine_hpx.cpp: In function 'hpx::future run(size_t, size_t, double)': >...

> @SAtacker thanks a lot. I think I now remember reading somewhere that clang co_await expects an rvalue reference for non-copyable awaitables. Found the link for this bug report on...

> @SAtacker does this work, then? > > ``` > auto futures2 = co_await hpx::when_all(std::move(futures)).share(); > ``` It does not : (

I am not sure but it seems like an issue related to name_lookup?

Found a bunch of stuff related to lookup of promise type for coroutines. diff releases/gcc-10.4.1 releases/gcc-11.1.0 ```diff 2020-02-04 Iain Sandoe + + * coroutines.cc (find_promise_type): Delete unused forward + declaration....

@diehlpk I compiled the same code with gcc-10.4.0 and with gcc-11.x and it works. This must be a bug, however I am not able to reproduce it on godbolt.

I'll start working on it and let you know. Thanks.

Also, can the `line_follow.cpp` be added? ``` satacker@ubuntu:~/Wall-E-Sim/Task_1$ cmake .. -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working...