[llvm-bugs] [Bug 32856] New: bind on generic lambda

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Apr 29 05:24:54 PDT 2017


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

            Bug ID: 32856
           Summary: bind on generic lambda
           Product: libc++
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: r.hl at gmx.net
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

#include <functional>

int main() {
    int i;
    std::bind([] (auto& x) {x = 1;}, i)();
}

---

Spuriously rejected, because the const-qualified operator() of the call wrapper
instantiates some SFINAE unfriendly check during overload resolution.

-- 
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/20170429/f0296b4e/attachment.html>


More information about the llvm-bugs mailing list