https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Summary|std::dextents was not |std::dextents was not
|found, which prevented |exported from std module
|std::mdspan from specifying |
|dimensions at runtime |
Status|UNCONFIRMED |NEW
Last reconfirmed| |2025-07-19
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This works:
```
#include <mdspan>
int main() {
int v[] = {1, 2, 3, 4, 5, 6};
std::mdspan<int, std::dextents<std::size_t, 2>> view{v, 2, 3};
return 0;
}
```
So it looks like dextents is not exported from the std module.
extents is exported but not dextents.