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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to