Thanks again for the patches. I have tested the patches locally, and now have my ready to merge branch that contains the series in following order: * [PATCH v2 0/8] libstdc++: Sequence of improvements to <mdspan>. (there are mine v3 patches) https://gcc.gnu.org/pipermail/libstdc++/2025-August/062847.html * [PATCH v1 0/2] Two cleanup patches for <mdspan>. https://gcc.gnu.org/pipermail/libstdc++/2025-August/062937.html * [PATCH v3] libstdc++: Implement std::dims from <mdspan>. https://gcc.gnu.org/pipermail/libstdc++/2025-August/062847.html * [PATCH v4 0/2] libstdc++: Implement aligned_accessor [P2897R7] (this patch)
On Mon, Aug 4, 2025 at 1:01 PM Luc Grosheintz <luc.groshei...@gmail.com> wrote: > Updated version of v3: > https://gcc.gnu.org/pipermail/libstdc++/2025-July/062772.html > > Notably it (finally) removes the debug assertion. It should be > applied after (at least that's the order I test them in locally): > > https://gcc.gnu.org/pipermail/libstdc++/2025-July/062727.html > > It might be safer to also apply the "Improvements" patch series > first, since updating std::dims and std::aligned_accessor is much > easier than the reverse. > > Luc Grosheintz (2): > libstdc++: Implement is_sufficiently_aligned [PR120994] > libstdc++: Implement aligned_accessor from mdspan [PR120994] > > libstdc++-v3/include/bits/align.h | 16 ++++++ > libstdc++-v3/include/bits/version.def | 18 +++++++ > libstdc++-v3/include/bits/version.h | 20 +++++++ > libstdc++-v3/include/std/mdspan | 54 +++++++++++++++++++ > libstdc++-v3/include/std/memory | 1 + > libstdc++-v3/src/c++23/std.cc.in | 10 ++-- > .../20_util/headers/memory/version.cc | 4 ++ > .../20_util/is_sufficiently_aligned/1.cc | 31 +++++++++++ > .../mdspan/accessors/aligned_neg.cc | 33 ++++++++++++ > .../accessors/debug/aligned_access_neg.cc | 23 ++++++++ > .../accessors/debug/aligned_offset_neg.cc | 23 ++++++++ > .../23_containers/mdspan/accessors/generic.cc | 31 +++++++++++ > .../testsuite/23_containers/mdspan/version.cc | 8 +++ > 13 files changed, 269 insertions(+), 3 deletions(-) > create mode 100644 > libstdc++-v3/testsuite/20_util/is_sufficiently_aligned/1.cc > create mode 100644 > libstdc++-v3/testsuite/23_containers/mdspan/accessors/aligned_neg.cc > create mode 100644 > libstdc++-v3/testsuite/23_containers/mdspan/accessors/debug/aligned_access_neg.cc > create mode 100644 > libstdc++-v3/testsuite/23_containers/mdspan/accessors/debug/aligned_offset_neg.cc > > -- > 2.50.0 > >