https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103924
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> --- I encountered a similar problem when testing views::join_with: #include <string> #include <ranges> constexpr std::string_view rs[] = {"42"}; static_assert(!std::ranges::empty(rs | std::views::join_with(std::string("")))); error: accessing ‘std::__cxx11::basic_string<char>::<unnamed union>::_M_allocated_capacity’ member instead of initialized ‘std::__cxx11::basic_string<char>::<unnamed union>::_M_local_buf’ member in constant expression