[llvm-bugs] [Bug 39838] New: std::function isn't ABI compatible between C++03 and C++11

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 29 07:24:16 PST 2018


            Bug ID: 39838
           Summary: std::function isn't ABI compatible between C++03 and
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric at efcs.ca
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Created attachment 21178
  --> https://bugs.llvm.org/attachment.cgi?id=21178&action=edit

Our fallback implementation of std::function for C++03 isn't ABI compatible
with the C++11 implementation; specifically the
__base<Args>::operator()(Args...). In C++11 the virtual call operator accepts
it's parameters by rvalue reference (to avoid additional copies), but the C++03
version accepts its arguments by value.

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/20181129/71503092/attachment.html>

More information about the llvm-bugs mailing list