-
Couldn't load subscription status.
- Fork 15k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorlibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Description
llvm-project/libcxx/include/__mdspan/extents.h
Lines 457 to 459 in f5031c6
| // Deduction guide for extents | |
| template <class... _IndexTypes> | |
| extents(_IndexTypes...) -> extents<size_t, size_t((_IndexTypes(), dynamic_extent))...>; |
..which rejects the following code:
https://godbolt.org/z/47vfGne7s
#include <mdspan>
struct S {
S(size_t);
operator size_t() const noexcept;
};
int main() {
int* p;
std::mdspan ms(p, S{3}); // ok
std::extents exts(S{3}); // error
}Metadata
Metadata
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorlibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.