[llvm-bugs] [Bug 44592] New: shared_ptr<T[]> not constructible from a pointer
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jan 19 17:08:45 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44592
Bug ID: 44592
Summary: shared_ptr<T[]> not constructible from a pointer
Product: libc++
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: barry.revzin at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
>From StackOverflow (https://stackoverflow.com/q/59813395/2069064), this
program:
#include <memory>
std::shared_ptr<int[]> sp(new int[3]);
fails to compile with, complaining about no matching constructor. But it should
work, and works on libstdc++.
--
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/20200120/a95dcfc4/attachment.html>
More information about the llvm-bugs
mailing list