Open erikzenker opened 3 years ago
Which version of gcc are you using? There have been some gcc bugs that have caused weird broken coroutines behaviour that might be causing this.
Does the same issue occur on clang?
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Currently, I only have access to clang 11.0 which fails to configure the cmake version of cppcoro
CMake Error at cmake/FindCoroutines.cmake:272 (message):
Cannot compile simple program using std::coroutines. Is C++17 or later
activated?
Call Stack (most recent call first):
lib/CMakeLists.txt:172 (find_package)
Hi, thanks for your report. Could you please try the master branch of my fork at https://github.com/andreasbuhr/cppcoro ? Some problems, specially regarding CMake, have been fixed there and the corresponding pull requests are not merged yet. To configure cppcoro, could you try the guidance I have given here: https://github.com/andreasbuhr/cppcoro/issues/21 ?
When running the test
single_consumer_async_auto_reset_event_tests
with activated address sanitizer or using valgrind you will detect memory leaks: