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: unassignedclangb...@nondot.org
Reporter: mikezack...@gmail.com
CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs