https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 --- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> --- Span is a view, so it is like reference-wrapper. The lifetime of the underlying data is not tied to the lifetime of the Span.