[llvm-bugs] [Bug 41643] New: make_from_tuple does not work with tuples containing rvalues

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 28 21:03:05 PDT 2019


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

            Bug ID: 41643
           Summary: make_from_tuple does not work with tuples containing
                    rvalues
           Product: libc++
           Version: unspecified
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: z.zoelec2 at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

The following code fails to compile:

int main()
{
    std::tuple<int&&, int&&> t(42, 42);
    auto p = std::make_from_tuple<std::pair<int&&, int&&>>(t);
}

I think this is because __make_from_tuple_impl does not forward tuple elements
to the constructor properly.

-- 
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/20190429/08ef2aec/attachment.html>


More information about the llvm-bugs mailing list