diff --git a/tpls/mdspan/include/experimental/__p2642_bits/layout_padded.hpp b/tpls/mdspan/include/experimental/__p2642_bits/layout_padded.hpp index 8af1d00ff16..896a30eb810 100644 --- a/tpls/mdspan/include/experimental/__p2642_bits/layout_padded.hpp +++ b/tpls/mdspan/include/experimental/__p2642_bits/layout_padded.hpp @@ -105,9 +105,9 @@ struct padded_extent { MDSPAN_INLINE_FUNCTION static constexpr static_array_type init_padding(const _Extents &exts, - index_type padding_value) { + index_type pv) { if constexpr (_Extents::rank() > 1) { - return {find_next_multiple(padding_value, + return {find_next_multiple(pv, exts.extent(_ExtentToPadIdx))}; } else { return {};