https://llvm.org/bugs/show_bug.cgi?id=23099
Bug ID: 23099
Summary: std::future regression
Product: clang
Version: 3.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Since using clang 3.6.0, the following code crashes with
"Illegal instruction (core dumped)"
Whereas clang 3.5.0 returns the correct output value "1"
//file future.cpp
#include <thread>
#include <future>
#include <iostream>
int bla()
{
return 1;
}
int main()
{
std::future<int> f = std::async(std::launch::async, bla);
f.wait();
std::cout<<f.get()<<std::endl;
return 0;
}
//end file
Build it with
clang++ --std=c++11 -lpthread future.cpp
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs