Skip to content

shared_ptr<T[]> not constructible from a pointer #43937

@llvmbot

Description

@llvmbot
Bugzilla Link 44592
Resolution FIXED
Resolved on May 14, 2020 11:52
Version unspecified
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @mclow,@zoecarver

Extended Description

From StackOverflow (https://stackoverflow.com/q/59813395/2069064), this program:

#include

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++.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillalibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions