You can just define a span type yourself: https://uecker.codeberg.page/2025-07-02.html
What new clang feature are you talking about?
-fbounds-safety
This works with new attributes as far as I know.