[LLVMbugs] [Bug 23131] New: std::function constructor unable to take std::allocator<void>

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 5 19:32:34 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23131

            Bug ID: 23131
           Summary: std::function constructor unable to take
                    std::allocator<void>
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: donutydonuts+clang at gmail.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

#include <functional>
#include <memory>

int main()
{
    // Error on this line
    //
    std::function<void()> test_fn(std::allocator_arg, std::allocator<void>(),
        []()
        {
        });


    // This line works. When changed to std::allocator<int>
    //
    std::function<void()> test_fn(std::allocator_arg, std::allocator<int>(),
        []()
        {
        });

    return 0;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150406/8bc90a71/attachment.html>


More information about the llvm-bugs mailing list