https://bugs.llvm.org/show_bug.cgi?id=47449
Bug ID: 47449
Summary: std::tuple constructor template auto deduction fails
with a class F that has a ctor F(std::tuple<F>)
Product: libc++
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
struct F {
F() {}
F(const std::tuple<F>&) {}
};
int main() {
// ok: std::tuple<F>
std::tuple t1{F{}};
// ok: std::tuple<std::tuple<F>>
std::tuple<std::tuple<F>> t2 = std::make_tuple(t1);
// should be std::tuple<std::tuple<F>> but fails with stdlibc++
std::tuple t3 = std::make_tuple(t1);
}
// Code in compiler explorer: https://godbolt.org/z/qGrcav
--
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