[LLVMbugs] [Bug 14934] <future> std::async possible deadlock

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 14 13:00:04 PST 2013


Yan Zhou <zhouyan1014 at gmail.com> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #2 from Yan Zhou <zhouyan1014 at gmail.com> 2013-01-14 15:00:04 CST ---
I tried out the latest svn version of libc++ (together with a new build of
clang), however the following minimal example failed

#include <future>

void do_nothing () {}

int main (int argc, const char **argv)
    auto handle = std::async(do_nothing);

    return 0;

clang++ -std=c++11 -stdlib=libc++ -g -O2 -o test test.cpp -lpthread

Running it through gdb it appears that the test at LINE 77, src/future.cpp
if (__has_value())
failed and throw an exception.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list