[llvm-bugs] [Bug 47449] New: std::tuple constructor template auto deduction fails with a class F that has a ctor F(std::tuple<F>)
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 7 08:24:37 PDT 2020
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: unassignedclangbugs at nondot.org
Reporter: kirshamir at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200907/4c6b1a31/attachment.html>
More information about the llvm-bugs
mailing list