[llvm-bugs] [Bug 41689] New: Issue using std::tuple_cat to construct a single-element tuple containing a type with a templated constructor

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 1 10:00:06 PDT 2019


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

            Bug ID: 41689
           Summary: Issue using std::tuple_cat to construct a
                    single-element tuple containing a type with a
                    templated constructor
           Product: libc++
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mikezackles at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Something like this fails to compile with libc++ using c++17:

auto foo() -> std::tuple<Thing<int>> {
    return std::tuple_cat(std::tuple(Thing<int>(5)));
}

error: no viable conversion from 'std::__1::tuple<Thing<int> &&>' to 'int'

Here is a live demo: https://godbolt.org/z/CSMdD2

Many thanks, and my apologies if I'm mistaken.

-- 
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/20190501/e3d318f6/attachment.html>


More information about the llvm-bugs mailing list