https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88128
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > (In reply to Viktor Ostashevskyi from comment #3) > > Is it possible to make std::span<const T> from std::vector<T>? > > Yes, that works with current trunk. Although that could be a bug: the constraints use declval<_Container&>() but should be using declval<const _Container&>().