Closed oneleggedredcow closed 6 years ago
I have seen something similar under MSVC too, but I attribute that to a compiler bug as it only occurs under optimised builds.
Have you tried using a nightly build of clang 6? I know there were some bugs with the clang 5 implementation of coroutines and there have been some fixes added to mainline since clang 5 was branched that may not have been backported. eg. You could be seeing https://bugs.llvm.org/show_bug.cgi?id=34289
Awesome! That did the trick. Thanks!
I was attempting to write a nested coroutine, and kept getting errors. Here's a simple test case of what I was trying to do:
Running that program through valgrind yields the following errors:
Here's the line used to compile the program:
And here's my clang version:
So, what am I doing wrong?