-
Couldn't load subscription status.
- Fork 15k
Closed
Labels
libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Milestone
Description
The following code fails on libc++ but works with other implementations:
#include <span>
struct Bar;
void foo(std::span<Bar> a) {
std::span<Bar> b(a);
}The problem seems to be that we try testing for the range-based constructor of span, which hard-errors because we are checking the contiguous_range constraint and end up performing arithmetic on a pointer to an incomplete type.
Metadata
Metadata
Assignees
Labels
libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Type
Projects
Status
Done