https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114501
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Changing he return type of size to be size_t rather than size_type fixes the issue. So does adding: constexpr basic_string_view view; to the toplevel namespace.