https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109525
--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> --- testcase: #include <ranges> #include <vector> std::vector<int> v; std::same_as<std::ranges::ref_view<const std::vector<int>>> auto r = std::views::as_const(v);