http://llvm.org/bugs/show_bug.cgi?id=16385
Bug ID: 16385
Summary: Using std::bind with std::function leads to stack
overflow
Product: libc++
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 10709
--> http://llvm.org/bugs/attachment.cgi?id=10709&action=edit
a.cpp
I'm using the 3.3 sources from the following page:
http://llvm.org/releases/download.html#3.3
If the first parameter to a std::bind is a std::function, the code does not
work. The stack shows up to 63k recursive calls to:
std::__1__function<float (float,
float)>::function<std::__1::__bind<std::__1::function<float (float, float)>&,
float, float > > ()
How to compile:
clang++ -std=c++11 -stdlib=libc++ -lcxxrt -ldl a.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