https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120415
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- I suspect this is a similar problem to Bug 120325 i.e. an iterator type which is not compatible with C++20 rules, and needs to be fixed or opt-out of being a C++20 random access iterator.